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

 
GeneralThe worst way to name a variable PinPopular
DaintyB3-Aug-12 21:03
DaintyB3-Aug-12 21:03 
GeneralRe: The worst way to name a variable Pin
PIEBALDconsult4-Aug-12 8:29
mvePIEBALDconsult4-Aug-12 8:29 
GeneralRe: The worst way to name a variable Pin
AspDotNetDev4-Aug-12 21:03
protectorAspDotNetDev4-Aug-12 21:03 
GeneralRe: The worst way to name a variable Pin
Andrei Straut6-Aug-12 2:37
Andrei Straut6-Aug-12 2:37 
GeneralRe: The worst way to name a variable Pin
DaintyB4-Aug-12 22:34
DaintyB4-Aug-12 22:34 
GeneralRe: The worst way to name a variable Pin
Andrei Straut6-Aug-12 2:41
Andrei Straut6-Aug-12 2:41 
GeneralRe: The worst way to name a variable Pin
BillW337-Aug-12 8:39
professionalBillW337-Aug-12 8:39 
GeneralRe: The worst way to name a variable Pin
Brisingr Aerowing15-Aug-12 15:14
professionalBrisingr Aerowing15-Aug-12 15:14 
I know a kid who names his variables x, xx, xxx, xxxx, and so on and so forth. His methods have names like "JDOEHSNFD" (Note all caps). The professor was not very happy when trying to read (and grade) his code. The student also did things like 'String xxx = "879374930";' and then the next line would be 'int xxxx = Integer.parse(xxx).intValue();' The string variable would not be referenced AT ALL after that! Is it any wonder he failed?
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions.
Dave Barry
Read more at BrainyQuote[^]

GeneralWhat's the f()?! PinPopular
David MacDermot2-Aug-12 12:57
David MacDermot2-Aug-12 12:57 
GeneralRe: What's the f()?! Pin
OriginalGriff2-Aug-12 21:23
mveOriginalGriff2-Aug-12 21:23 
GeneralRe: What's the f()?! Pin
Christian Brüggemann2-Aug-12 22:24
Christian Brüggemann2-Aug-12 22:24 
GeneralRe: What's the f()?! Pin
Bernhard Hiller3-Aug-12 0:29
Bernhard Hiller3-Aug-12 0:29 
GeneralRe: What's the f()?! Pin
BobJanova3-Aug-12 1:05
BobJanova3-Aug-12 1:05 
GeneralRe: What's the f()?! Pin
PIEBALDconsult3-Aug-12 4:25
mvePIEBALDconsult3-Aug-12 4:25 
GeneralCan you call a method on an object that is null? Pin
Shameel2-Aug-12 5:27
professionalShameel2-Aug-12 5:27 
GeneralRe: Can you call a method on an object that is null? PinPopular
OriginalGriff2-Aug-12 8:49
mveOriginalGriff2-Aug-12 8:49 
GeneralRe: Can you call a method on an object that is null? Pin
Shameel2-Aug-12 20:30
professionalShameel2-Aug-12 20:30 
GeneralRe: Can you call a method on an object that is null? Pin
BobJanova2-Aug-12 23:51
BobJanova2-Aug-12 23:51 
GeneralRe: Can you call a method on an object that is null? Pin
Brisingr Aerowing15-Aug-12 15:19
professionalBrisingr Aerowing15-Aug-12 15:19 
GeneralRe: Can you call a method on an object that is null? Pin
Adriaan Davel2-Aug-12 21:07
Adriaan Davel2-Aug-12 21:07 
GeneralRe: Can you call a method on an object that is null? Pin
J4amieC3-Aug-12 3:22
J4amieC3-Aug-12 3:22 
GeneralRe: Can you call a method on an object that is null? Pin
ekolis30-Aug-12 13:16
ekolis30-Aug-12 13:16 
GeneralRe: Can you call a method on an object that is null? Pin
Florin Jurcovici3-Aug-12 5:30
Florin Jurcovici3-Aug-12 5:30 
GeneralRe: Can you call a method on an object that is null? Pin
onelopez3-Aug-12 6:14
onelopez3-Aug-12 6:14 
GeneralRe: Can you call a method on an object that is null? Pin
H.Brydon7-Oct-12 10:22
professionalH.Brydon7-Oct-12 10:22 

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.