Click here to Skip to main content
15,898,010 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.

 
GeneralEvery line makes me die a little more... Pin
leppie11-Aug-11 0:37
leppie11-Aug-11 0:37 
GeneralRe: Every line makes me die a little more... Pin
Shameel11-Aug-11 6:03
professionalShameel11-Aug-11 6:03 
GeneralRe: Every line makes me die a little more... Pin
GibbleCH11-Aug-11 8:48
GibbleCH11-Aug-11 8:48 
GeneralRe: Every line makes me die a little more... Pin
leppie11-Aug-11 9:10
leppie11-Aug-11 9:10 
GeneralRe: Every line makes me die a little more... Pin
Brady Kelly11-Aug-11 10:29
Brady Kelly11-Aug-11 10:29 
GeneralRe: Every line makes me die a little more... Pin
Allan Thomas12-Aug-11 2:18
Allan Thomas12-Aug-11 2:18 
GeneralRe: Every line makes me die a little more... Pin
leppie12-Aug-11 3:45
leppie12-Aug-11 3:45 
GeneralIt's a jungle in there PinPopular
GibbleCH9-Aug-11 5:22
GibbleCH9-Aug-11 5:22 
I was refactoring a horribly written app. Tons of duplicated code. Crazy amounts of dead code (~30-50%). And my personal favourite, was a method that went something like this.

C#
public void Some_Method()
{
    try 
    {

    }
    catch (Exception x)
    {
        LogException(x);
    }
}


Fortunately, or not, this method was never called...but I sure am glad the catch block was there....just in case that empty try block failed.
GeneralRe: It's a jungle in there Pin
Shameel9-Aug-11 5:52
professionalShameel9-Aug-11 5:52 
GeneralRe: It's a jungle in there Pin
StM0n9-Aug-11 6:11
StM0n9-Aug-11 6:11 
GeneralRe: It's a jungle in there Pin
Reiss9-Aug-11 8:42
professionalReiss9-Aug-11 8:42 
GeneralRe: It's a jungle in there Pin
GibbleCH9-Aug-11 8:46
GibbleCH9-Aug-11 8:46 
GeneralRe: It's a jungle in there Pin
Sander Rossel9-Aug-11 20:26
professionalSander Rossel9-Aug-11 20:26 
GeneralRe: It's a jungle in there Pin
Fabio Franco10-Aug-11 3:47
professionalFabio Franco10-Aug-11 3:47 
GeneralRe: It's a jungle in there Pin
Sander Rossel10-Aug-11 7:47
professionalSander Rossel10-Aug-11 7:47 
GeneralRe: It's a jungle in there Pin
Fabio Franco10-Aug-11 9:25
professionalFabio Franco10-Aug-11 9:25 
GeneralRe: It's a jungle in there Pin
Sander Rossel10-Aug-11 11:14
professionalSander Rossel10-Aug-11 11:14 
GeneralRe: It's a jungle in there Pin
Fabio Franco11-Aug-11 5:01
professionalFabio Franco11-Aug-11 5:01 
GeneralRe: It's a jungle in there Pin
Sander Rossel11-Aug-11 11:59
professionalSander Rossel11-Aug-11 11:59 
GeneralRe: It's a jungle in there Pin
cpkilekofp16-Aug-11 13:02
cpkilekofp16-Aug-11 13:02 
GeneralRe: It's a jungle in there Pin
Fabio Franco17-Aug-11 1:36
professionalFabio Franco17-Aug-11 1:36 
GeneralRe: It's a jungle in there Pin
GibbleCH10-Aug-11 3:48
GibbleCH10-Aug-11 3:48 
GeneralRe: It's a jungle in there Pin
Sander Rossel10-Aug-11 7:57
professionalSander Rossel10-Aug-11 7:57 
GeneralRe: It's a jungle in there Pin
Bernhard Hiller9-Aug-11 20:32
Bernhard Hiller9-Aug-11 20:32 
GeneralRe: It's a jungle in there Pin
BobJanova10-Aug-11 1:36
BobJanova10-Aug-11 1:36 

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.