Click here to Skip to main content
15,888,195 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: Bug of the day Pin
Sentenryu23-Oct-12 23:27
Sentenryu23-Oct-12 23:27 
GeneralRe: Bug of the day Pin
BobJanova23-Oct-12 23:55
BobJanova23-Oct-12 23:55 
GeneralRe: Bug of the day Pin
Jan Steyn24-Oct-12 21:48
Jan Steyn24-Oct-12 21:48 
GeneralMessage Removed Pin
22-Oct-12 18:39
Aadhar Joshi22-Oct-12 18:39 
GeneralWhat was the most interesting, funny or silly Code you have ever read? PinPopular
Member 858314522-Oct-12 0:36
Member 858314522-Oct-12 0:36 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? PinPopular
LloydA11122-Oct-12 0:58
LloydA11122-Oct-12 0:58 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? PinPopular
Rage22-Oct-12 1:41
professionalRage22-Oct-12 1:41 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Member 460889823-Oct-12 18:27
Member 460889823-Oct-12 18:27 
I've seen that in older Fortran programs on compilers for systems that didn't have comparison against constants in their assembly language. They saved zero in a particular location and all comparisons were done against that location. Occasionally, someone would unknowingly pass 0 into a routine in the parameter position where the value was changed by the routine. That is when zero stopped becoming zero and was something completely different. It read something like

if ((0+1) .ne. 1) call abend
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
jsc4226-Oct-12 1:27
professionaljsc4226-Oct-12 1:27 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Doug Henderson28-Oct-12 0:49
Doug Henderson28-Oct-12 0:49 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
OriginalGriff28-Oct-12 1:48
mveOriginalGriff28-Oct-12 1:48 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? PinPopular
Simon_Whale22-Oct-12 1:15
Simon_Whale22-Oct-12 1:15 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Aadhar Joshi22-Oct-12 2:02
Aadhar Joshi22-Oct-12 2:02 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? PinPopular
Bernhard Hiller22-Oct-12 2:42
Bernhard Hiller22-Oct-12 2:42 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Fabio Franco23-Oct-12 3:13
professionalFabio Franco23-Oct-12 3:13 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
jsc4226-Oct-12 1:32
professionaljsc4226-Oct-12 1:32 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Fabio Franco26-Oct-12 2:15
professionalFabio Franco26-Oct-12 2:15 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
jsc4226-Oct-12 2:45
professionaljsc4226-Oct-12 2:45 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Fabio Franco26-Oct-12 3:19
professionalFabio Franco26-Oct-12 3:19 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? PinPopular
Andrew Rissing22-Oct-12 4:36
Andrew Rissing22-Oct-12 4:36 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
The Sql Coder22-Oct-12 20:06
The Sql Coder22-Oct-12 20:06 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
dxk24124-Oct-12 3:13
dxk24124-Oct-12 3:13 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Bernhard Hiller22-Oct-12 2:44
Bernhard Hiller22-Oct-12 2:44 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
jbradshaw13-Dec-12 8:18
jbradshaw13-Dec-12 8:18 
GeneralRe: What was the most interesting, funny or silly Code you have ever read? Pin
Clark Kent12322-Oct-12 7:44
professionalClark Kent12322-Oct-12 7:44 

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.