Click here to Skip to main content
15,887,248 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: Unreachable code detected Pin
Marc Clifton3-Nov-14 8:19
mvaMarc Clifton3-Nov-14 8:19 
GeneralRe: Unreachable code detected Pin
Eddy Vluggen3-Nov-14 9:11
professionalEddy Vluggen3-Nov-14 9:11 
GeneralRe: Unreachable code detected Pin
PIEBALDconsult3-Nov-14 9:43
mvePIEBALDconsult3-Nov-14 9:43 
GeneralRe: Unreachable code detected Pin
ledtech33-Nov-14 9:50
ledtech33-Nov-14 9:50 
GeneralRe: Unreachable code detected Pin
TheGreatAndPowerfulOz3-Nov-14 10:06
TheGreatAndPowerfulOz3-Nov-14 10:06 
GeneralRe: Unreachable code detected Pin
Marc Clifton3-Nov-14 10:33
mvaMarc Clifton3-Nov-14 10:33 
GeneralRe: Unreachable code detected Pin
TheGreatAndPowerfulOz3-Nov-14 11:50
TheGreatAndPowerfulOz3-Nov-14 11:50 
GeneralRe: Unreachable code detected Pin
Rob Grainger20-Dec-14 2:41
Rob Grainger20-Dec-14 2:41 
Amen to that, I use code analysis tools to and eliminate all the issues those detect.

Occassionally I have to use a pragma/code comment when I really intentionally did something, but its rare, and worth it for the number of bugs I detect early.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralRe: Unreachable code detected Pin
Gary R. Wheeler8-Nov-14 1:39
Gary R. Wheeler8-Nov-14 1:39 
GeneralRe: Unreachable code detected Pin
Rob Grainger20-Dec-14 2:42
Rob Grainger20-Dec-14 2:42 
RantWeird but not so wonderful Pin
kmoorevs29-Oct-14 8:28
kmoorevs29-Oct-14 8:28 
GeneralRe: Weird but not so wonderful Pin
W Balboos, GHB3-Nov-14 8:49
W Balboos, GHB3-Nov-14 8:49 
GeneralHow not to do a countdown Pin
PIEBALDconsult28-Oct-14 12:28
mvePIEBALDconsult28-Oct-14 12:28 
GeneralRe: How not to do a countdown Pin
ZurdoDev31-Oct-14 1:54
professionalZurdoDev31-Oct-14 1:54 
GeneralRe: How not to do a countdown Pin
PIEBALDconsult31-Oct-14 3:23
mvePIEBALDconsult31-Oct-14 3:23 
GeneralRe: How not to do a countdown Pin
ZurdoDev31-Oct-14 3:25
professionalZurdoDev31-Oct-14 3:25 
GeneralRe: How not to do a countdown Pin
PIEBALDconsult31-Oct-14 3:32
mvePIEBALDconsult31-Oct-14 3:32 
GeneralRe: How not to do a countdown Pin
Brisingr Aerowing3-Nov-14 15:49
professionalBrisingr Aerowing3-Nov-14 15:49 
GeneralIt's Primes as far as the eye can see! Pin
OriginalGriff27-Oct-14 5:06
mveOriginalGriff27-Oct-14 5:06 
JokeRe: It's Primes as far as the eye can see! Pin
ZurdoDev27-Oct-14 5:13
professionalZurdoDev27-Oct-14 5:13 
GeneralRe: It's Primes as far as the eye can see! Pin
OriginalGriff27-Oct-14 5:27
mveOriginalGriff27-Oct-14 5:27 
GeneralRe: It's Primes as far as the eye can see! Pin
DaveAuld27-Oct-14 6:22
professionalDaveAuld27-Oct-14 6:22 
GeneralRe: It's Primes as far as the eye can see! Pin
ZurdoDev27-Oct-14 6:24
professionalZurdoDev27-Oct-14 6:24 
GeneralRe: It's Primes as far as the eye can see! Pin
PhilLenoir27-Oct-14 8:38
professionalPhilLenoir27-Oct-14 8:38 
GeneralRe: It's Primes as far as the eye can see! Pin
newton.saber27-Oct-14 9:26
newton.saber27-Oct-14 9:26 

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.