Click here to Skip to main content
15,900,907 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: 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 
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 
PIEBALDconsult wrote:

That's sort of a way to (temporarily) comment-out
the then-section for testing. It probably shouldn't have made it to
production.


It might actually be intended to stay in there until the developer's sure that the previous condition won't ever be used again...or the logic within the condition, which may be useful in a modified condition but might be difficult to remember. Sometimes it's easier to do that when you think your boss/customer/vendor has lost their mind than to trust that you'll remember exactly out of which source version you chopped it if you need it back NOW.
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 
GeneralRe: Classical unitialized C pointer Pin
MarvinMartian28-Jan-12 11:50
MarvinMartian28-Jan-12 11:50 
GeneralRe: Classical unitialized C pointer Pin
YvesDaoust29-Jan-12 21:01
YvesDaoust29-Jan-12 21:01 
GeneralRe: Classical unitialized C pointer Pin
Jochen Arndt29-Jan-12 21:32
professionalJochen Arndt29-Jan-12 21:32 
GeneralRe: Classical unitialized C pointer Pin
YvesDaoust29-Jan-12 23:02
YvesDaoust29-Jan-12 23:02 
GeneralRe: Classical unitialized C pointer Pin
Jochen Arndt29-Jan-12 23:10
professionalJochen Arndt29-Jan-12 23:10 

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.