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: What was I thinking PinmemberDavid Goebet16-Jan-13 2:40 
GeneralRe: What was I thinking PinmemberMatt U.16-Jan-13 2:56 
GeneralRe: What was I thinking Pinmemberpeterchen16-Jan-13 4:24 
GeneralRe: What was I thinking PinmemberG James16-Jan-13 10:57 
My personal favorite from C#. Someone was testing the value of a boolean variable.
 
if (someBooleanVariable == true)
    return true;
else
    return false;
 
Later they refactored it to this thinking it was an improvement. Smile | :)
return someBooleanVariable == true ? true : false;

JokeRe: What was I thinking PinadminChris Maunder16-Jan-13 19:02 
GeneralRe: What was I thinking Pinmember33deepak16-Jan-13 19:13 
GeneralRe: What was I thinking PinadminChris Maunder16-Jan-13 19:14 
GeneralRe: What was I thinking PinmemberJames Lonero19-Jan-13 12:08 
JokeRe: What was I thinking PinmemberAndrew Rissing17-Jan-13 6:48 
GeneralRe: What was I thinking PinadminChris Maunder17-Jan-13 10:43 

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