Click here to Skip to main content
15,891,951 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Government IT Hiring Pin
Michael Waters18-Jan-11 9:31
Michael Waters18-Jan-11 9:31 
GeneralAt least this one was easy to refactor... Pin
Rob Grainger7-Jan-11 4:09
Rob Grainger7-Jan-11 4:09 
GeneralRe: At least this one was easy to refactor... PinPopular
fjdiewornncalwe7-Jan-11 4:55
professionalfjdiewornncalwe7-Jan-11 4:55 
GeneralRe: At least this one was easy to refactor... Pin
Rob Grainger7-Jan-11 5:23
Rob Grainger7-Jan-11 5:23 
GeneralRe: At least this one was easy to refactor... Pin
musefan7-Jan-11 6:45
musefan7-Jan-11 6:45 
GeneralRe: At least this one was easy to refactor... PinPopular
imagiro8-Jan-11 0:24
imagiro8-Jan-11 0:24 
GeneralRe: At least this one was easy to refactor... Pin
PIEBALDconsult11-Jan-11 2:25
mvePIEBALDconsult11-Jan-11 2:25 
GeneralRe: At least this one was easy to refactor... Pin
Euhemerus17-Jan-11 8:11
Euhemerus17-Jan-11 8:11 
What I find deeply disturbing by this and other examples of bad coding is that these people get paid for writing this rubbish. Furthermore, what is more frightening is the fact that they could be writing code for safety systems or banking systems or who knows what else.

No bloody wonder the software industry puts a NO WARRANTIES EXPRESSED OR IMPLIED notice into every EULA D'Oh! They're not even sure it's going to work. Can you imagine buying a new car and the manufacturer said that there were no warranties?
Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg

GeneralNot null check PinPopular
Ciumac Sergiu5-Jan-11 2:37
Ciumac Sergiu5-Jan-11 2:37 
GeneralRe: Not null check Pin
Luc Pattyn5-Jan-11 3:11
sitebuilderLuc Pattyn5-Jan-11 3:11 
GeneralRe: Not null check Pin
Kevin Drzycimski5-Jan-11 4:59
Kevin Drzycimski5-Jan-11 4:59 
GeneralRe: Not null check Pin
HimanshuJoshi5-Jan-11 15:26
HimanshuJoshi5-Jan-11 15:26 
GeneralRe: Not null check Pin
Ciumac Sergiu5-Jan-11 20:16
Ciumac Sergiu5-Jan-11 20:16 
GeneralRe: Not null check PinPopular
Paladin20006-Jan-11 3:32
Paladin20006-Jan-11 3:32 
GeneralRe: Not null check Pin
Eddy Vluggen7-Jan-11 8:34
professionalEddy Vluggen7-Jan-11 8:34 
GeneralRe: Not null check Pin
Keith Barrow7-Jan-11 4:24
professionalKeith Barrow7-Jan-11 4:24 
GeneralRe: Not null check Pin
fjdiewornncalwe5-Jan-11 3:44
professionalfjdiewornncalwe5-Jan-11 3:44 
GeneralRe: Not null check Pin
Ciumac Sergiu5-Jan-11 5:03
Ciumac Sergiu5-Jan-11 5:03 
GeneralRe: Not null check Pin
GibbleCH5-Jan-11 8:50
GibbleCH5-Jan-11 8:50 
GeneralIsNullOrEmpty Pin
AspDotNetDev30-Dec-10 8:23
protectorAspDotNetDev30-Dec-10 8:23 
GeneralRe: IsNullOrEmpty [modified] Pin
OriginalGriff30-Dec-10 10:23
mveOriginalGriff30-Dec-10 10:23 
GeneralRe: IsNullOrEmpty Pin
AspDotNetDev30-Dec-10 11:29
protectorAspDotNetDev30-Dec-10 11:29 
GeneralRe: IsNullOrEmpty Pin
OriginalGriff30-Dec-10 21:01
mveOriginalGriff30-Dec-10 21:01 
JokeRe: IsNullOrEmpty Pin
fjdiewornncalwe2-Jan-11 4:23
professionalfjdiewornncalwe2-Jan-11 4:23 
GeneralRe: IsNullOrEmpty Pin
PIEBALDconsult6-Jan-11 2:29
mvePIEBALDconsult6-Jan-11 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.