Click here to Skip to main content
15,889,216 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: Avoid return statement in the middle - horror or not? Pin
supercat916-Dec-08 8:14
supercat916-Dec-08 8:14 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult16-Dec-08 13:13
mvePIEBALDconsult16-Dec-08 13:13 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
supercat916-Dec-08 17:20
supercat916-Dec-08 17:20 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult17-Dec-08 12:24
mvePIEBALDconsult17-Dec-08 12:24 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Lutosław12-Dec-08 10:11
Lutosław12-Dec-08 10:11 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult12-Dec-08 10:45
mvePIEBALDconsult12-Dec-08 10:45 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
rfidel10-Dec-08 5:03
rfidel10-Dec-08 5:03 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult10-Dec-08 8:33
mvePIEBALDconsult10-Dec-08 8:33 
That's simply the first snippet inverted and made even uglier. It's still a maintenance nightmare.
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Manish K. Agarwal10-Dec-08 21:32
Manish K. Agarwal10-Dec-08 21:32 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult11-Dec-08 6:15
mvePIEBALDconsult11-Dec-08 6:15 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Thomas Weller11-Dec-08 19:56
Thomas Weller11-Dec-08 19:56 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult12-Dec-08 3:18
mvePIEBALDconsult12-Dec-08 3:18 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Marcello Faga11-Dec-08 1:30
Marcello Faga11-Dec-08 1:30 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
riced11-Dec-08 14:04
riced11-Dec-08 14:04 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Thomas Weller11-Dec-08 19:49
Thomas Weller11-Dec-08 19:49 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult12-Dec-08 3:34
mvePIEBALDconsult12-Dec-08 3:34 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Rob Grainger16-Dec-08 3:10
Rob Grainger16-Dec-08 3:10 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
coolM18-Dec-08 8:04
coolM18-Dec-08 8:04 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult18-Dec-08 8:41
mvePIEBALDconsult18-Dec-08 8:41 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
coolM18-Dec-08 10:57
coolM18-Dec-08 10:57 
JokeRe: Avoid return statement in the middle - horror or not? Pin
notmasteryet18-Dec-08 12:29
notmasteryet18-Dec-08 12:29 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
PIEBALDconsult18-Dec-08 15:47
mvePIEBALDconsult18-Dec-08 15:47 
GeneralRe: Avoid return statement in the middle - horror or not? Pin
Megidolaon22-Feb-09 23:43
Megidolaon22-Feb-09 23:43 
GeneralC and Machine Code horror Pin
Timothy Baldwin2-Dec-08 11:12
Timothy Baldwin2-Dec-08 11:12 
GeneralRe: C and Machine Code horror Pin
Paul Conrad2-Dec-08 11:16
professionalPaul Conrad2-Dec-08 11: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.