Click here to Skip to main content

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 PinmemberSuper Lloyd17-Dec-12 17:58 
GeneralRe: Found this little gem in one of the applications PinmemberKP Lee18-Dec-12 7:29 
GeneralRe: Found this little gem in one of the applications PinmemberSuper Lloyd18-Dec-12 13:52 
GeneralFacepalm time. PinmemberMarcus 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. Pinmemberwout de zeeuw13-Dec-12 5:59 
GeneralRe: Facepalm time. PinmemberMarcus Kramer13-Dec-12 7:44 
GeneralRe: Facepalm time. PinmemberAnna-Jayne Metcalfe13-Dec-12 23:34 
GeneralRe: Facepalm time. PinmemberKP Lee16-Dec-12 0:58 
NewsExtract from the code I'm working on PinmemberSuper Lloyd10-Dec-12 17:26 
GeneralRe: Extract from the code I'm working on PinmemberZac Greve10-Dec-12 18:57 

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.150327.1 | Last Updated 29 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid