Click here to Skip to main content
15,897,273 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: I see dumb people Pin
PIEBALDconsult14-Jan-09 15:47
mvePIEBALDconsult14-Jan-09 15:47 
GeneralRe: I see dumb people Pin
Wenff15-Jan-09 3:00
professionalWenff15-Jan-09 3:00 
GeneralRe: I see dumb people Pin
Oshtri Deka16-Jan-09 2:24
professionalOshtri Deka16-Jan-09 2:24 
GeneralRe: I see dumb people Pin
jeffwask16-Jan-09 9:46
jeffwask16-Jan-09 9:46 
GeneralRe: I see dumb people Pin
Brian C Hart18-Jan-09 13:00
professionalBrian C Hart18-Jan-09 13:00 
GeneralRe: I see dumb people Pin
ToddHileHoffer19-Jan-09 8:32
ToddHileHoffer19-Jan-09 8:32 
GeneralRe: I see dumb people Pin
NoirWD19-Jan-09 8:47
NoirWD19-Jan-09 8:47 
GeneralMagic of if...else...programming Pin
che33587-Jan-09 9:45
che33587-Jan-09 9:45 
The following code was found in someone's web template. Hope you enjoy the best logic.

if(dt != null)
{
   if(dt.Rows.Count != 0)
   {
       if(dt.Rows[0]["Number"].ToString() == "1")
       {
           return true;
       }
       else
       {
           return false;
       }
   }
   else
   {
      return false;
   }
}
else
{
    return false;
}

GeneralRe: Magic of if...else...programming Pin
PIEBALDconsult7-Jan-09 10:38
mvePIEBALDconsult7-Jan-09 10:38 
GeneralRe: Magic of if...else...programming Pin
Timothy Byrd7-Jan-09 11:30
Timothy Byrd7-Jan-09 11:30 
GeneralRe: Magic of if...else...programming Pin
Shaun Wilde8-Jan-09 8:49
Shaun Wilde8-Jan-09 8:49 
GeneralRe: Magic of if...else...programming Pin
PIEBALDconsult8-Jan-09 12:54
mvePIEBALDconsult8-Jan-09 12:54 
GeneralRe: Magic of if...else...programming Pin
Malli_S8-Jan-09 21:12
Malli_S8-Jan-09 21:12 
JokeRe: Magic of if...else...programming Pin
Jeremy Tierman13-Jan-09 10:28
Jeremy Tierman13-Jan-09 10:28 
GeneralRe: Magic of if...else...programming Pin
Adrian Cole21-Jan-09 10:22
Adrian Cole21-Jan-09 10:22 
GeneralRe: Magic of if...else...programming PinPopular
Stephen Hewitt7-Jan-09 13:22
Stephen Hewitt7-Jan-09 13:22 
GeneralRe: Magic of if...else...programming PinPopular
Robert Rohde7-Jan-09 22:05
Robert Rohde7-Jan-09 22:05 
JokeRe: Magic of if...else...programming PinPopular
Luc Pattyn8-Jan-09 3:42
sitebuilderLuc Pattyn8-Jan-09 3:42 
GeneralRe: Magic of if...else...programming Pin
PIEBALDconsult8-Jan-09 3:47
mvePIEBALDconsult8-Jan-09 3:47 
GeneralRe: Magic of if...else...programming Pin
Luc Pattyn8-Jan-09 4:05
sitebuilderLuc Pattyn8-Jan-09 4:05 
GeneralRe: Magic of if...else...programming Pin
PIEBALDconsult8-Jan-09 4:18
mvePIEBALDconsult8-Jan-09 4:18 
GeneralRe: Magic of if...else...programming Pin
Andrew Rissing8-Jan-09 7:44
Andrew Rissing8-Jan-09 7:44 
GeneralRe: Magic of if...else...programming Pin
Andrew Rissing8-Jan-09 7:45
Andrew Rissing8-Jan-09 7:45 
GeneralRe: Magic of if...else...programming Pin
PIEBALDconsult8-Jan-09 8:25
mvePIEBALDconsult8-Jan-09 8:25 
GeneralRe: Magic of if...else...programming Pin
Luc Pattyn8-Jan-09 7:57
sitebuilderLuc Pattyn8-Jan-09 7:57 

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.