Click here to Skip to main content
15,887,856 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: It's a jungle in there Pin
Amar Chaudhary10-Aug-11 2:50
Amar Chaudhary10-Aug-11 2:50 
GeneralRe: It's a jungle in there Pin
Member 776995910-Aug-11 8:36
Member 776995910-Aug-11 8:36 
GeneralRe: It's a jungle in there Pin
Br.Bill10-Aug-11 6:58
Br.Bill10-Aug-11 6:58 
GeneralRe: It's a jungle in there [modified] Pin
RobCroll14-Aug-11 3:29
RobCroll14-Aug-11 3:29 
GeneralRe: It's a jungle in there Pin
GibbleCH15-Aug-11 5:31
GibbleCH15-Aug-11 5:31 
GeneralRe: It's a jungle in there Pin
richard_k15-Aug-11 21:34
richard_k15-Aug-11 21:34 
GeneralMessage Removed Pin
8-Aug-11 4:13
professionalN_tro_P8-Aug-11 4:13 
GeneralRe: Validation fails so lets not use it Pin
fjdiewornncalwe9-Aug-11 3:28
professionalfjdiewornncalwe9-Aug-11 3:28 
Reminds me of an application I support that had the following gem in it.
Not only was this method called only once in the entire solution, but apparently someone "forgot" to code anything in it. I'm sure this isn't the first time someone has seen this one, too.
C#
private bool IsValid()
{
    return true;
}

I wasn't, now I am, then I won't be anymore.

GeneralRe: Validation fails so lets not use it Pin
thoiness1-Sep-11 4:55
thoiness1-Sep-11 4:55 
GeneralRe: Validation fails so lets not use it Pin
Shameel9-Aug-11 4:38
professionalShameel9-Aug-11 4:38 
GeneralRe: Validation fails so lets not use it Pin
Chris Berger9-Aug-11 6:18
Chris Berger9-Aug-11 6:18 
GeneralRe: Validation fails so lets not use it Pin
Lutosław11-Aug-11 23:18
Lutosław11-Aug-11 23:18 
GeneralIf not null, return value else return null PinPopular
Keith Barrow7-Aug-11 1:58
professionalKeith Barrow7-Aug-11 1:58 
GeneralRe: If not null, return value else return null Pin
BillW338-Aug-11 13:32
professionalBillW338-Aug-11 13:32 
GeneralRe: If not null, return value else return null Pin
RobCroll9-Aug-11 0:48
RobCroll9-Aug-11 0:48 
GeneralTricking Microsoft and being shamless PinPopular
xavier morera6-Aug-11 5:27
xavier morera6-Aug-11 5:27 
GeneralRe: Tricking Microsoft and being shamless Pin
Shameel7-Aug-11 4:44
professionalShameel7-Aug-11 4:44 
GeneralRe: Tricking Microsoft and being shamless Pin
BillW338-Aug-11 13:23
professionalBillW338-Aug-11 13:23 
GeneralRe: Tricking Microsoft and being shamless Pin
SeattleC++9-Aug-11 4:20
SeattleC++9-Aug-11 4:20 
GeneralRe: Tricking Microsoft and being shamless Pin
Richard X Menezes7-Aug-11 20:36
Richard X Menezes7-Aug-11 20:36 
GeneralRe: Tricking Microsoft and being shamless Pin
BC3Tech9-Aug-11 3:15
BC3Tech9-Aug-11 3:15 
GeneralRe: Tricking Microsoft and being shamless Pin
xavier morera9-Aug-11 3:23
xavier morera9-Aug-11 3:23 
GeneralRe: Tricking Microsoft and being shamless Pin
MehGerbil9-Aug-11 3:27
MehGerbil9-Aug-11 3:27 
GeneralRe: Tricking Microsoft and being shamless Pin
xavier morera9-Aug-11 3:35
xavier morera9-Aug-11 3:35 
GeneralRe: Tricking Microsoft and being shamless Pin
ely_bob9-Aug-11 3:57
professionalely_bob9-Aug-11 3:57 

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.