Click here to Skip to main content
15,895,011 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 wonder!!!! Pin
PIEBALDconsult6-Nov-08 14:33
mvePIEBALDconsult6-Nov-08 14:33 
GeneralRe: I wonder!!!! Pin
AhsanS6-Nov-08 18:24
AhsanS6-Nov-08 18:24 
GeneralRe: I wonder!!!! Pin
notmasteryet10-Dec-08 7:20
notmasteryet10-Dec-08 7:20 
Generalsomeone who does not trust arithmetic PinPopular
shadayim4-Nov-08 0:44
shadayim4-Nov-08 0:44 
GeneralRe: someone who does not trust arithmetic Pin
negretrucci4-Nov-08 2:17
negretrucci4-Nov-08 2:17 
GeneralRe: someone who does not trust arithmetic Pin
Russell Jones4-Nov-08 2:46
Russell Jones4-Nov-08 2:46 
GeneralRe: someone who does not trust arithmetic PinPopular
Thomas Weller4-Nov-08 3:08
Thomas Weller4-Nov-08 3:08 
GeneralRe: someone who does not trust arithmetic PinPopular
Russell Jones4-Nov-08 3:11
Russell Jones4-Nov-08 3:11 
bool foo(int n)<br />
{<br />
  if (n > 16)<br />
    return true;<br />
  else if (n <= 16 && n>4)<br />
    return false;<br />
  else if (n <= 4)<br />
    return true;<br />
}


Coding from scratch, I agree but it's late on deadline day when someone realises that the case of n<=4 no longer applies, these kind of things can happen.
GeneralRe: someone who does not trust arithmetic Pin
Thomas Weller4-Nov-08 3:26
Thomas Weller4-Nov-08 3:26 
GeneralRe: someone who does not trust arithmetic Pin
Andrew Rissing5-Nov-08 4:02
Andrew Rissing5-Nov-08 4:02 
GeneralRe: someone who does not trust arithmetic Pin
cpkilekofp7-Nov-08 5:34
cpkilekofp7-Nov-08 5:34 
GeneralRe: someone who does not trust arithmetic Pin
Jason Lepack (LeppyR64)4-Nov-08 4:22
Jason Lepack (LeppyR64)4-Nov-08 4:22 
GeneralRe: someone who does not trust arithmetic Pin
CPallini4-Nov-08 3:19
mveCPallini4-Nov-08 3:19 
GeneralRe: someone who does not trust arithmetic [modified] Pin
Vincenzo Rossi4-Nov-08 10:28
professionalVincenzo Rossi4-Nov-08 10:28 
GeneralRe: someone who does not trust arithmetic Pin
leppie5-Nov-08 19:50
leppie5-Nov-08 19:50 
GeneralRe: someone who does not trust arithmetic Pin
Vincenzo Rossi7-Nov-08 9:15
professionalVincenzo Rossi7-Nov-08 9:15 
GeneralRe: someone who does not trust arithmetic Pin
Chris Maunder5-Nov-08 2:57
cofounderChris Maunder5-Nov-08 2:57 
QuestionRe: someone who does not trust arithmetic Pin
CPallini5-Nov-08 3:03
mveCPallini5-Nov-08 3:03 
AnswerRe: someone who does not trust arithmetic Pin
PIEBALDconsult5-Nov-08 5:31
mvePIEBALDconsult5-Nov-08 5:31 
GeneralRe: someone who does not trust arithmetic Pin
CPallini5-Nov-08 6:01
mveCPallini5-Nov-08 6:01 
JokeRe: someone who does not trust arithmetic Pin
Thomas Weller5-Nov-08 7:10
Thomas Weller5-Nov-08 7:10 
GeneralRe: someone who does not trust arithmetic Pin
Dan Neely5-Nov-08 8:28
Dan Neely5-Nov-08 8:28 
GeneralRe: someone who does not trust arithmetic Pin
Thomas Weller5-Nov-08 8:49
Thomas Weller5-Nov-08 8:49 
GeneralRe: someone who does not trust arithmetic Pin
CPallini5-Nov-08 9:36
mveCPallini5-Nov-08 9:36 
GeneralMy boss must be a klingon Pin
Rob Grainger6-Nov-08 3:04
Rob Grainger6-Nov-08 3:04 

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.