Click here to Skip to main content
15,889,556 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
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 
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 
It seems a lot of people follow to this "rule" without ever questioning why. My manager was also an advocate of the "single return improves readability" fallacy until I explained to him why this wouldn't be the case with examples. Plus when I completely rewrote a ugly mass of haired code in our system into actually maintainable code, he was convinced.

I think it needs some luck, and having open-minded management helps too.
Interested in Machine Learning in .NET? Check the Accord.NET Framework.
See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

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? Pin
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 
GeneralRe: Which code you suggest? Pin
Nicholas Marty25-Jul-13 23:06
professionalNicholas Marty25-Jul-13 23:06 
GeneralRe: Which code you suggest? Pin
Sentenryu26-Jul-13 0:55
Sentenryu26-Jul-13 0:55 
GeneralRe: Which code you suggest? Pin
ZurdoDev26-Jul-13 1:31
professionalZurdoDev26-Jul-13 1:31 
GeneralRe: Which code you suggest? Pin
Sentenryu26-Jul-13 3:53
Sentenryu26-Jul-13 3:53 
GeneralRe: Which code you suggest? Pin
AJC Software26-Jul-13 0:54
AJC Software26-Jul-13 0:54 

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.