Click here to Skip to main content
15,886,422 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: So you think you know what double.Parse does? Pin
ExcellentOrg21-Aug-13 0:07
ExcellentOrg21-Aug-13 0:07 
GeneralFace, meet palm... Pin
Dave Kreskowiak2-Aug-13 9:45
mveDave Kreskowiak2-Aug-13 9:45 
GeneralRe: Face, meet palm... Pin
lewax002-Aug-13 10:22
lewax002-Aug-13 10:22 
GeneralBest Function Ever Pin
LNogueira2-Aug-13 6:20
LNogueira2-Aug-13 6:20 
GeneralRe: Best Function Ever Pin
Sentenryu2-Aug-13 6:44
Sentenryu2-Aug-13 6:44 
GeneralRe: Best Function Ever Pin
Ravi Bhavnani2-Aug-13 7:08
professionalRavi Bhavnani2-Aug-13 7:08 
GeneralRe: Best Function Ever Pin
ZurdoDev2-Aug-13 8:03
professionalZurdoDev2-Aug-13 8:03 
GeneralRe: Best Function Ever Pin
Paul M Watt2-Aug-13 7:58
mentorPaul M Watt2-Aug-13 7:58 
I would possibly mention it to him in passing.

I have learned to no longer ridicule code no matter how idiodic that it appears, because I may just be belittling the code to the person that wrote it. Plus, I have come across my own mistakes that appear almost as brilliant as the example you have posted. I can only imagine started an idea, and never returned to that piece of code.
To know and not do, is not yet to know

GeneralRe: Best Function Ever Pin
Andy Bantly5-Aug-13 7:56
Andy Bantly5-Aug-13 7:56 
GeneralRe: Best Function Ever Pin
Mohibur Rashid19-Aug-13 17:37
professionalMohibur Rashid19-Aug-13 17:37 
GeneralRe: Best Function Ever Pin
ZurdoDev2-Aug-13 8:05
professionalZurdoDev2-Aug-13 8:05 
GeneralRe: Best Function Ever Pin
Mladen Janković2-Aug-13 10:31
Mladen Janković2-Aug-13 10:31 
GeneralRe: Best Function Ever Pin
Paul M Watt5-Aug-13 18:11
mentorPaul M Watt5-Aug-13 18:11 
GeneralRe: Best Function Ever Pin
Lutosław14-Aug-13 0:09
Lutosław14-Aug-13 0:09 
GeneralRe: Best Function Ever Pin
MarkTJohnson6-Aug-13 6:51
professionalMarkTJohnson6-Aug-13 6:51 
GeneralRe: Best Function Ever Pin
PIEBALDconsult9-Aug-13 8:03
mvePIEBALDconsult9-Aug-13 8:03 
GeneralRe: Best Function Ever Pin
MacSpudster13-Aug-13 5:25
professionalMacSpudster13-Aug-13 5:25 
GeneralRe: Best Function Ever Pin
ExcellentOrg21-Aug-13 0:10
ExcellentOrg21-Aug-13 0:10 
GeneralRe: Best Function Ever Pin
Super Lloyd7-Aug-13 3:02
Super Lloyd7-Aug-13 3:02 
GeneralRe: Best Function Ever Pin
ExcellentOrg21-Aug-13 0:08
ExcellentOrg21-Aug-13 0:08 
GeneralThe return a detailed error string but ignore its contents and assume it's only ever the failure case you expected to occur but couldn't be bothered to handle properly pattern Pin
Dan Neely2-Aug-13 4:42
Dan Neely2-Aug-13 4:42 
GeneralRe: The return a detailed error string but ignore its contents and assume it's only ever the failure case you expected to occur but couldn't be bothered to handle properly pattern Pin
ZurdoDev2-Aug-13 4:54
professionalZurdoDev2-Aug-13 4:54 
GeneralRe: The return a detailed error string but ignore its contents and assume it's only ever the failure case you expected to occur but couldn't be bothered to handle properly pattern Pin
OriginalGriff2-Aug-13 5:38
mveOriginalGriff2-Aug-13 5:38 
GeneralRe: The return a detailed error string but ignore its contents and assume it's only ever the failure case you expected to occur but couldn't be bothered to handle properly pattern PinPopular
ZurdoDev2-Aug-13 5:49
professionalZurdoDev2-Aug-13 5:49 
GeneralRe: The return a detailed error string but ignore its contents and assume it's only ever the failure case you expected to occur but couldn't be bothered to handle properly pattern Pin
OriginalGriff2-Aug-13 6:03
mveOriginalGriff2-Aug-13 6:03 

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.