Click here to Skip to main content
15,889,315 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: Which code you suggest? Pin
svella29-Jul-13 4:02
svella29-Jul-13 4:02 
GeneralRe: Which code you suggest? Pin
Stefan_Lang29-Jul-13 22:48
Stefan_Lang29-Jul-13 22:48 
GeneralRe: Which code you suggest? Pin
svella30-Jul-13 3:57
svella30-Jul-13 3:57 
GeneralRe: Which code you suggest? Pin
PIEBALDconsult30-Jul-13 5:44
mvePIEBALDconsult30-Jul-13 5:44 
GeneralRe: Which code you suggest? Pin
Renzo Ciafardone27-Jul-13 16:49
Renzo Ciafardone27-Jul-13 16:49 
GeneralRe: Which code you suggest? Pin
Fabio Franco26-Jul-13 2:59
professionalFabio Franco26-Jul-13 2:59 
GeneralRe: Which code you suggest? Pin
Klaus-Werner Konrad1-Aug-13 12:32
Klaus-Werner Konrad1-Aug-13 12:32 
GeneralRe: Which code you suggest? Pin
Sentenryu25-Jul-13 8:46
Sentenryu25-Jul-13 8:46 
the 2 loops are a good example, but for me is easier to track multiple exit points than it is to track changes on a variable.

there may be a hundred variables involved, the return value can get reset, millions of things can happen, but when there's a return statement, i know it's over. whatever i've at that point is the result, i can track individual cases one at a time.

for me it's really easier to track execution paths this way, is it different for you?

the ammount of different opnions when we talk about code is just funny Poke tongue | ;-P

opnions are the oposite of highlanders, there can never be only one.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

"Given the chance I'd rather work smart than work hard." - PHS241

"'Sophisticated platform' typically means 'I have no idea how it works.'"

GeneralRe: Which code you suggest? Pin
ZurdoDev30-Jul-13 5:44
professionalZurdoDev30-Jul-13 5:44 
GeneralRe: Which code you suggest? Pin
PIEBALDconsult30-Jul-13 5:43
mvePIEBALDconsult30-Jul-13 5:43 
GeneralRe: Which code you suggest? Pin
César de Souza26-Jul-13 3:06
professionalCésar de Souza26-Jul-13 3:06 
GeneralRe: Which code you suggest? Pin
Argonia26-Jul-13 3:59
professionalArgonia26-Jul-13 3:59 
GeneralRe: Which code you suggest? Pin
César de Souza26-Jul-13 4:41
professionalCésar de Souza26-Jul-13 4:41 
GeneralRe: Which code you suggest? Pin
Ancandune26-Jul-13 2:19
Ancandune26-Jul-13 2:19 
GeneralRe: Which code you suggest? Pin
ZurdoDev26-Jul-13 2:21
professionalZurdoDev26-Jul-13 2:21 
GeneralRe: Which code you suggest? Pin
Ravi Bhavnani29-Jul-13 11:16
professionalRavi Bhavnani29-Jul-13 11:16 
GeneralRe: Which code you suggest? Pin
ZurdoDev29-Jul-13 14:45
professionalZurdoDev29-Jul-13 14:45 
GeneralRe: Which code you suggest? Pin
Ravi Bhavnani30-Jul-13 5:05
professionalRavi Bhavnani30-Jul-13 5:05 
GeneralRe: Which code you suggest? Pin
ZurdoDev30-Jul-13 5:07
professionalZurdoDev30-Jul-13 5:07 
GeneralRe: Which code you suggest? Pin
Ravi Bhavnani30-Jul-13 5:10
professionalRavi Bhavnani30-Jul-13 5:10 
GeneralRe: Which code you suggest? Pin
ZurdoDev30-Jul-13 5:14
professionalZurdoDev30-Jul-13 5:14 
GeneralRe: Which code you suggest? Pin
Ravi Bhavnani30-Jul-13 5:26
professionalRavi Bhavnani30-Jul-13 5:26 
AnswerRe: Which code you suggest? Pin
Dave Kreskowiak25-Jul-13 4:49
mveDave Kreskowiak25-Jul-13 4:49 
AnswerRe: Which code you suggest? PinPopular
Ron Beyer25-Jul-13 4:53
professionalRon Beyer25-Jul-13 4:53 
GeneralRe: Which code you suggest? Pin
ZurdoDev25-Jul-13 8:34
professionalZurdoDev25-Jul-13 8:34 

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.