Click here to Skip to main content
15,893,337 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: A little tiny horror Pin
leppie9-Jan-08 1:45
leppie9-Jan-08 1:45 
GeneralRe: A little tiny horror Pin
Gary Wheeler9-Jan-08 0:40
Gary Wheeler9-Jan-08 0:40 
JokeRe: A little tiny horror Pin
KarstenK8-Jan-08 22:59
mveKarstenK8-Jan-08 22:59 
GeneralRe: A little tiny horror Pin
Gary Wheeler9-Jan-08 0:32
Gary Wheeler9-Jan-08 0:32 
JokeRe: A little tiny horror Pin
leppie9-Jan-08 1:57
leppie9-Jan-08 1:57 
JokeNope Pin
CPallini9-Jan-08 2:22
mveCPallini9-Jan-08 2:22 
GeneralRe: Nope Pin
leppie9-Jan-08 2:46
leppie9-Jan-08 2:46 
GeneralRe: A little tiny horror PinPopular
Tim Smith9-Jan-08 10:08
Tim Smith9-Jan-08 10:08 
<br />
int pow(int i, int j)<br />
{<br />
    switch (j) {<br />
        default: return 0;<br />
        case 0: return 1;<br />
        case 32: i *= i;<br />
        case 31: i *= i;<br />
        case 30: i *= i;<br />
        ...<br />
        case 1: return i;<br />
    }<br />
}<br />


....

ewwwww

Tim Smith

I'm going to patent thought. I have yet to see any prior art.

GeneralRe: A little tiny horror Pin
leppie9-Jan-08 10:14
leppie9-Jan-08 10:14 
JokeRe: A little tiny horror Pin
CPallini10-Jan-08 3:06
mveCPallini10-Jan-08 3:06 
JokeRe: A little tiny horror Pin
CPallini9-Jan-08 2:25
mveCPallini9-Jan-08 2:25 
GeneralRe: A little tiny horror Pin
ClementsDan10-Jan-08 15:11
ClementsDan10-Jan-08 15:11 
GeneralRe: A little tiny horror Pin
Tim Carmichael14-Jan-08 8:59
Tim Carmichael14-Jan-08 8:59 
JokeRe: A little tiny horror Pin
RichardM114-Jan-08 10:15
RichardM114-Jan-08 10:15 
GeneralRe: A little tiny horror PinPopular
Pete O'Hanlon14-Jan-08 9:31
mvePete O'Hanlon14-Jan-08 9:31 
GeneralRe: A little tiny horror Pin
Gary Wheeler15-Jan-08 0:29
Gary Wheeler15-Jan-08 0:29 
GeneralRe: A little tiny horror Pin
Pete O'Hanlon15-Jan-08 1:25
mvePete O'Hanlon15-Jan-08 1:25 
GeneralRe: A little tiny horror Pin
Gary Wheeler15-Jan-08 1:37
Gary Wheeler15-Jan-08 1:37 
GeneralYou need a flag? Why not create a file for that! PinPopular
peterchen25-Dec-07 8:44
peterchen25-Dec-07 8:44 
GeneralRe: You need a flag? Why not create a file for that! Pin
Paul Conrad26-Dec-07 9:39
professionalPaul Conrad26-Dec-07 9:39 
GeneralRe: You need a flag? Why not create a file for that! Pin
Alaric_3-Jan-08 3:47
professionalAlaric_3-Jan-08 3:47 
GeneralRe: You need a flag? Why not create a file for that! Pin
Alaric_3-Jan-08 4:04
professionalAlaric_3-Jan-08 4:04 
GeneralRe: You need a flag? Why not create a file for that! Pin
peterchen3-Jan-08 8:01
peterchen3-Jan-08 8:01 
GeneralVBA GoTo Hell PinPopular
GuyThiebaut24-Dec-07 3:32
professionalGuyThiebaut24-Dec-07 3:32 
GeneralWhat If (Re: VBA GoTo Hell) Pin
Xiangyang Liu 刘向阳24-Dec-07 5:12
Xiangyang Liu 刘向阳24-Dec-07 5:12 

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.