Click here to Skip to main content
15,887,596 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.

 
AnswerRe: zero int? Pin
Nagy Vilmos21-Nov-11 23:52
professionalNagy Vilmos21-Nov-11 23:52 
GeneralRe: zero int? Pin
CDP180221-Nov-11 23:57
CDP180221-Nov-11 23:57 
GeneralRe: zero int? Pin
Nagy Vilmos21-Nov-11 23:58
professionalNagy Vilmos21-Nov-11 23:58 
GeneralRe: zero int? Pin
CDP180222-Nov-11 0:08
CDP180222-Nov-11 0:08 
GeneralRe: zero int? Pin
PIEBALDconsult22-Nov-11 1:51
mvePIEBALDconsult22-Nov-11 1:51 
GeneralRe: zero int? Pin
CDP180222-Nov-11 2:24
CDP180222-Nov-11 2:24 
GeneralRe: zero int? Pin
Reiss22-Nov-11 2:45
professionalReiss22-Nov-11 2:45 
GeneralRe: zero int? Pin
CDP180222-Nov-11 2:52
CDP180222-Nov-11 2:52 
Long ago we did our best to write misleading code with help of the C preprocessor. Then Java came along and they celebrated the end of such malicious practices. C# has a preprocessor (as all directives beginning with '#' clearly show), but it is harder to use in a destructive way. Still, your example shows that it was not the preprocessor that was the root of all evil.
And from the clouds a mighty voice spoke:
"Smile and be happy, for it could come worse!"

And I smiled and was happy
And it came worse.



GeneralRe: zero int? PinPopular
harold aptroot22-Nov-11 2:57
harold aptroot22-Nov-11 2:57 
GeneralRe: zero int? Pin
Reiss22-Nov-11 5:20
professionalReiss22-Nov-11 5:20 
GeneralRe: zero int? Pin
harold aptroot22-Nov-11 0:36
harold aptroot22-Nov-11 0:36 
GeneralRe: zero int? Pin
BobJanova22-Nov-11 0:38
BobJanova22-Nov-11 0:38 
AnswerRe: zero int? Pin
Fabio Franco23-Nov-11 7:16
professionalFabio Franco23-Nov-11 7:16 
AnswerRe: zero int? Pin
KP Lee3-Dec-11 11:18
KP Lee3-Dec-11 11:18 
RantWhy SQL Server sucked on Friday Pin
Gary R. Wheeler20-Nov-11 5:45
Gary R. Wheeler20-Nov-11 5:45 
GeneralRe: Why SQL Server sucked on Friday Pin
OriginalGriff20-Nov-11 6:07
mveOriginalGriff20-Nov-11 6:07 
GeneralRe: Why SQL Server sucked on Friday Pin
Gary R. Wheeler20-Nov-11 7:35
Gary R. Wheeler20-Nov-11 7:35 
GeneralRe: Why SQL Server sucked on Friday Pin
sucram21-Nov-11 1:57
sucram21-Nov-11 1:57 
GeneralPerfect way to show a splash screen PinPopular
Vladimir Svyatski16-Nov-11 21:08
professionalVladimir Svyatski16-Nov-11 21:08 
GeneralRe: Perfect way to show a splash screen Pin
BobJanova17-Nov-11 0:20
BobJanova17-Nov-11 0:20 
GeneralRe: Perfect way to show a splash screen Pin
Chris Meech17-Nov-11 4:07
Chris Meech17-Nov-11 4:07 
GeneralRe: Perfect way to show a splash screen Pin
BillW3317-Nov-11 5:14
professionalBillW3317-Nov-11 5:14 
GeneralRe: Perfect way to show a splash screen Pin
Johann Gerell22-Nov-11 1:33
Johann Gerell22-Nov-11 1:33 
GeneralRe: Perfect way to show a splash screen Pin
RobCroll17-Nov-11 11:52
RobCroll17-Nov-11 11:52 
GeneralRe: Perfect way to show a splash screen Pin
Bernhard Hiller18-Nov-11 3:29
Bernhard Hiller18-Nov-11 3: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.