Click here to Skip to main content
11,480,847 members (62,788 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
OriginalGriff13-Dec-12 7:16
mvpOriginalGriff13-Dec-12 7:16 
GeneralRe: Found this little gem in one of the applications Pin
RugbyLeague13-Dec-12 7:24
memberRugbyLeague13-Dec-12 7:24 
GeneralRe: Found this little gem in one of the applications Pin
d@nish 13-Dec-12 7:35
member d@nish 13-Dec-12 7:35 
GeneralRe: Found this little gem in one of the applications Pin
Super Lloyd13-Dec-12 14:13
memberSuper Lloyd13-Dec-12 14:13 
GeneralRe: Found this little gem in one of the applications Pin
ProgramFOX13-Dec-12 8:21
memberProgramFOX13-Dec-12 8:21 
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 
I have a singleton data cache I'm working with.
I was testing whether or not the cache items were removing correctly from a consumer of the data.
I was checking via a different object in the debugger that would pull the object in question from the cache.
The problem: This different object creates the bloody cache item if it doesn't exist, but in the debugger it just looked like it wasn't deleting. My code was fine all along... The brain fart was in the debugging... Double D'Oh! | :doh:
I wasn't, now I am, then I won't be anymore.

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 
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 

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
Web03 | 2.8.150520.1 | Last Updated 24 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid