Click here to Skip to main content
11,481,404 members (58,885 online)

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, embarrasing 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: Found this little gem in one of the applications Pin
Zac Greve13-Dec-12 7:29
memberZac Greve13-Dec-12 7:29 
GeneralRe: Found this little gem in one of the applications Pin
DrABELL13-Dec-12 8:12
memberDrABELL13-Dec-12 8:12 
GeneralRe: Found this little gem in one of the applications Pin
Walt Fair, Jr.13-Dec-12 9:12
subeditorWalt Fair, Jr.13-Dec-12 9:12 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd13-Dec-12 14:15
memberSuper Lloyd13-Dec-12 14:15 
GeneralRe: Found this little gem in one of the applications Pin
KP Lee17-Dec-12 9:06
memberKP Lee17-Dec-12 9:06 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd17-Dec-12 17:58
memberSuper Lloyd17-Dec-12 17:58 
GeneralRe: Found this little gem in one of the applications Pin
KP Lee18-Dec-12 7:29
memberKP Lee18-Dec-12 7:29 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd18-Dec-12 13:52
memberSuper Lloyd18-Dec-12 13:52 
GeneralFacepalm time. Pin
Marcus Kramer13-Dec-12 5:36
memberMarcus Kramer13-Dec-12 5:36 
GeneralRe: Facepalm time. Pin
wout de zeeuw13-Dec-12 5:59
memberwout de zeeuw13-Dec-12 5:59 
GeneralRe: Facepalm time. Pin
Marcus Kramer13-Dec-12 7:44
memberMarcus Kramer13-Dec-12 7:44 
GeneralRe: Facepalm time. Pin
Anna-Jayne Metcalfe13-Dec-12 23:34
memberAnna-Jayne Metcalfe13-Dec-12 23:34 
GeneralRe: Facepalm time. Pin
KP Lee16-Dec-12 0:58
memberKP Lee16-Dec-12 0:58 
NewsExtract from the code I'm working on Pin
Super Lloyd10-Dec-12 17:26
memberSuper Lloyd10-Dec-12 17:26 
I think that's the most stupid code I refactored today!
But barely, and there is a lot more! Sigh | :sigh:

public XYZ()
{
    _xyz = "0 , 0 , 0";
    string[] parts = _xyz.Split(',');
    Double.TryParse(parts[0], out x);
    Double.TryParse(parts[1], out y);
    Double.TryParse(parts[2], out z);
}
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

GeneralRe: Extract from the code I'm working on Pin
Zac Greve10-Dec-12 18:57
memberZac Greve10-Dec-12 18:57 
GeneralRe: Extract from the code I'm working on Pin
Super Lloyd10-Dec-12 19:13
memberSuper Lloyd10-Dec-12 19:13 
GeneralRe: Extract from the code I'm working on Pin
KP Lee11-Dec-12 13:08
memberKP Lee11-Dec-12 13:08 
GeneralRe: Extract from the code I'm working on Pin
Super Lloyd11-Dec-12 23:04
memberSuper Lloyd11-Dec-12 23:04 
GeneralRe: Extract from the code I'm working on Pin
Nemanja Trifunovic13-Dec-12 8:29
memberNemanja Trifunovic13-Dec-12 8:29 
GeneralRe: Extract from the code I'm working on Pin
Super Lloyd13-Dec-12 14:12
memberSuper Lloyd13-Dec-12 14:12 
GeneralNo foreign keys on the first date. Pin
Brady Kelly9-Dec-12 3:21
memberBrady Kelly9-Dec-12 3:21 
GeneralRe: No foreign keys on the first date. Pin
KP Lee11-Dec-12 9:17
memberKP Lee11-Dec-12 9:17 
GeneralRe: No foreign keys on the first date. Pin
Brady Kelly11-Dec-12 9:34
memberBrady Kelly11-Dec-12 9:34 
GeneralRe: No foreign keys on the first date. Pin
KP Lee11-Dec-12 12:33
memberKP Lee11-Dec-12 12:33 
GeneralRe: No foreign keys on the first date. Pin
Pete O'Hanlon11-Dec-12 10:10
protectorPete O'Hanlon11-Dec-12 10:10 
GeneralRe: No foreign keys on the first date. Pin
Brady Kelly11-Dec-12 17:36
memberBrady Kelly11-Dec-12 17:36 
GeneralRe: No foreign keys on the first date. Pin
Andrew Rissing13-Dec-12 7:42
memberAndrew Rissing13-Dec-12 7:42 
GeneralRe: No foreign keys on the first date. Pin
ryan_b200917-Dec-12 7:55
memberryan_b200917-Dec-12 7:55 
GeneralRe: No foreign keys on the first date. Pin
Brady Kelly17-Dec-12 8:04
memberBrady Kelly17-Dec-12 8:04 
GeneralHow do you like your nulls Pin
Robert Hoffmann8-Dec-12 2:57
memberRobert Hoffmann8-Dec-12 2:57 
GeneralRe: How do you like your nulls Pin
Zac Greve8-Dec-12 8:25
memberZac Greve8-Dec-12 8:25 
GeneralRe: How do you like your nulls Pin
lewax008-Dec-12 16:32
memberlewax008-Dec-12 16:32 
GeneralRe: How do you like your nulls Pin
Zac Greve8-Dec-12 17:23
memberZac Greve8-Dec-12 17:23 
GeneralRe: How do you like your nulls Pin
lewax008-Dec-12 17:33
memberlewax008-Dec-12 17:33 
AnswerRe: How do you like your nulls Pin
Robert Hoffmann9-Dec-12 0:55
memberRobert Hoffmann9-Dec-12 0:55 
GeneralRe: How do you like your nulls Pin
lewax009-Dec-12 1:35
memberlewax009-Dec-12 1:35 
GeneralRe: How do you like your nulls Pin
Robert Hoffmann9-Dec-12 10:39
memberRobert Hoffmann9-Dec-12 10:39 
GeneralRe: How do you like your nulls Pin
patbob10-Dec-12 6:32
memberpatbob10-Dec-12 6:32 
GeneralRe: How do you like your nulls Pin
Tomz_KV10-Dec-12 3:28
memberTomz_KV10-Dec-12 3:28 
GeneralRe: How do you like your nulls Pin
Zac Greve10-Dec-12 10:17
memberZac Greve10-Dec-12 10:17 
GeneralRe: How do you like your nulls Pin
Eddy Vluggen10-Dec-12 15:26
memberEddy Vluggen10-Dec-12 15:26 
GeneralRe: How do you like your nulls Pin
BobJanova9-Dec-12 23:49
memberBobJanova9-Dec-12 23:49 
GeneralRe: How do you like your nulls Pin
RafagaX10-Dec-12 6:28
memberRafagaX10-Dec-12 6:28 
GeneralRe: How do you like your nulls Pin
jibesh12-Dec-12 23:35
memberjibesh12-Dec-12 23:35 
GeneralRe: How do you like your nulls Pin
RafagaX13-Dec-12 5:30
memberRafagaX13-Dec-12 5:30 
GeneralRe: How do you like your nulls Pin
AspDotNetDev10-Dec-12 7:35
protectorAspDotNetDev10-Dec-12 7:35 
JokeRe: How do you like your nulls Pin
Zac Greve10-Dec-12 10:18
memberZac Greve10-Dec-12 10:18 
GeneralRe: How do you like your nulls Pin
Florin Jurcovici11-Dec-12 11:18
memberFlorin Jurcovici11-Dec-12 11:18 
GeneralCount the horrors Pin
Jörgen Andersson6-Dec-12 23:37
memberJörgen Andersson6-Dec-12 23:37 
GeneralRe: Count the horrors Pin
OriginalGriff8-Dec-12 5:38
mvpOriginalGriff8-Dec-12 5:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 24 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid