Click here to Skip to main content
15,900,378 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: Linq2Horror Pin
Robert Rohde25-Jan-12 17:52
Robert Rohde25-Jan-12 17:52 
GeneralRe: Linq2Horror Pin
killabyte27-Jan-12 9:46
killabyte27-Jan-12 9:46 
GeneralRe: Linq2Horror Pin
Sander Rossel19-Mar-12 21:50
professionalSander Rossel19-Mar-12 21:50 
GeneralRe: Linq2Horror Pin
Robert Rohde22-Mar-12 2:07
Robert Rohde22-Mar-12 2:07 
GeneralGoodbye version control Pin
RobCroll20-Mar-12 12:07
RobCroll20-Mar-12 12:07 
GeneralRe: Goodbye version control Pin
Robert Rohde22-Mar-12 2:11
Robert Rohde22-Mar-12 2:11 
GeneralRe: Goodbye version control Pin
RobCroll22-Mar-12 12:36
RobCroll22-Mar-12 12:36 
GeneralLogical AND with false... PinPopular
Albert Holguin23-Jan-12 14:09
professionalAlbert Holguin23-Jan-12 14:09 
Didn't notice this little piece of code and it was making me think some sections worked completely different than they actually do.

C++
//C++
if(m_Config.m_isContinuous && false){ //<- should have probably payed closer attention to that...
   //A whole bunch of code that I thought was getting executed
}
else{
   //What's actually getting executed
}


Guess that was left like that for lack of time to clean up or something... but it shure led me astray... D'Oh! | :doh:

modified 24-Jan-12 11:04am.

GeneralRe: Logical AND with false... PinPopular
ZurdoDev24-Jan-12 3:01
professionalZurdoDev24-Jan-12 3:01 
GeneralRe: Logical AND with false... Pin
PIEBALDconsult24-Jan-12 4:01
mvePIEBALDconsult24-Jan-12 4:01 
GeneralRe: Logical AND with false... Pin
Albert Holguin24-Jan-12 5:05
professionalAlbert Holguin24-Jan-12 5:05 
GeneralRe: Logical AND with false... Pin
BobJanova24-Jan-12 9:55
BobJanova24-Jan-12 9:55 
GeneralRe: Logical AND with false... Pin
cpkilekofp27-Jan-12 6:44
cpkilekofp27-Jan-12 6:44 
GeneralRe: Logical AND with false... Pin
BillW3325-Jan-12 5:05
professionalBillW3325-Jan-12 5:05 
GeneralRe: Logical AND with false... Pin
englebart27-Jan-12 2:11
professionalenglebart27-Jan-12 2:11 
GeneralRe: Logical AND with false... Pin
Albert Holguin27-Jan-12 9:16
professionalAlbert Holguin27-Jan-12 9:16 
GeneralClassical unitialized C pointer Pin
Jochen Arndt20-Jan-12 0:59
professionalJochen Arndt20-Jan-12 0:59 
GeneralRe: Classical unitialized C pointer Pin
Albert Holguin23-Jan-12 4:52
professionalAlbert Holguin23-Jan-12 4:52 
JokeRe: Classical unitialized C pointer Pin
cpkilekofp27-Jan-12 6:35
cpkilekofp27-Jan-12 6:35 
GeneralRe: Classical unitialized C pointer Pin
ii_noname_ii24-Jan-12 3:42
ii_noname_ii24-Jan-12 3:42 
GeneralRe: Classical unitialized C pointer Pin
cpkilekofp27-Jan-12 6:48
cpkilekofp27-Jan-12 6:48 
GeneralRe: Classical unitialized C pointer Pin
Stefan_Lang25-Jan-12 4:44
Stefan_Lang25-Jan-12 4:44 
GeneralRe: Classical unitialized C pointer Pin
Jochen Arndt25-Jan-12 5:51
professionalJochen Arndt25-Jan-12 5:51 
GeneralRe: Classical unitialized C pointer Pin
cpkilekofp27-Jan-12 6:51
cpkilekofp27-Jan-12 6:51 
GeneralRe: Classical unitialized C pointer Pin
Stefan_Lang29-Jan-12 22:16
Stefan_Lang29-Jan-12 22:16 

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.