Click here to Skip to main content

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, embarrasing 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.

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralEnhancing the bugsmemberShameel5 Mar '13 - 3:33 
GeneralRe: Enhancing the bugsmvpDave Kreskowiak5 Mar '13 - 3:57 
GeneralRe: Enhancing the bugsmemberszukuro5 Mar '13 - 4:04 
GeneralRe: Enhancing the bugsmemberS Houghtelin8 Mar '13 - 2:27 
GeneralRe: Enhancing the bugsmemberPualee5 Mar '13 - 4:47 
GeneralRe: Enhancing the bugssubeditorWalt Fair, Jr.5 Mar '13 - 7:02 
GeneralSomeone is sure that availability check is performed no matter what [modified]memberkrumia28 Feb '13 - 18:15 
Of course, variables changed, methods renamed, and parameters omitted to protect the (not so) innocent.
// some code here

if (condition_a)
{
    if (condition_b)
    {
        // do something here
        if (AlertBox("Something wrong here. You wanna continue?"))
        {
            CheckAvailability();
        }
    }
    else if (condition_c)
    {
        // do something else here
        if (AlertBox("Some other thing wrong here. You wanna continue?"))
        {
            CheckAvailability();
        }
    }
    else
    {
        CheckAvailability();
    }
 
    CheckAvailability();
}
else
{
    CheckAvailability();
}
 
// more code here


modified 3 Mar '13 - 11:32.

GeneralRe: Someone is sure that availability check is performed no matter whatmemberKevin Drzycimski28 Feb '13 - 20:23 
GeneralRe: Someone is sure that availability check is performed no matter whatmemberBernhard Hiller28 Feb '13 - 20:41 
GeneralRe: Someone is sure that availability check is performed no matter whatmemberLee Venkatsamy9 Apr '13 - 4:13 
GeneralREMOVED [modified]memberBrisingr Aerowing24 Feb '13 - 7:59 
GeneralRe: Well then.memberPIEBALDconsult25 Feb '13 - 12:59 
GeneralRe: Well then.memberMax_Power_Up26 Feb '13 - 6:35 
GeneralRe: Well then.member d@nish 12 Mar '13 - 19:52 
GeneralMessage RemovedmemberBrisingr Aerowing13 Mar '13 - 3:09 
GeneralRe: Well then.member d@nish 13 Mar '13 - 3:23 
GeneralSometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 1:49 
GeneralRe: Sometimes I wonder about code commentsmemberPIEBALDconsult19 Feb '13 - 3:36 
GeneralRe: Sometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 3:41 
GeneralRe: Sometimes I wonder about code commentsmemberPIEBALDconsult19 Feb '13 - 3:57 
GeneralRe: Sometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 4:12 
GeneralRe: Sometimes I wonder about code commentsmemberCollin Jasnoch19 Feb '13 - 4:16 
GeneralRe: Sometimes I wonder about code commentsmemberMarco Bertschi19 Feb '13 - 4:36 
GeneralRe: Sometimes I wonder about code commentsmemberCollin Jasnoch19 Feb '13 - 4:39 
GeneralRe: Sometimes I wonder about code commentsmemberSoMad19 Feb '13 - 9:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid