Click here to Skip to main content
15,881,882 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: Stoopid me Pin
Marco Bertschi16-Sep-13 5:32
protectorMarco Bertschi16-Sep-13 5:32 
GeneralRe: Stoopid me Pin
Freak3016-Sep-13 21:27
Freak3016-Sep-13 21:27 
GeneralRe: Stoopid me Pin
Marco Bertschi16-Sep-13 22:11
protectorMarco Bertschi16-Sep-13 22:11 
GeneralRe: Stoopid me Pin
Sentenryu17-Sep-13 0:36
Sentenryu17-Sep-13 0:36 
GeneralRe: Stoopid me Pin
Marco Bertschi17-Sep-13 1:27
protectorMarco Bertschi17-Sep-13 1:27 
GeneralRe: Stoopid me Pin
Rob Grainger19-Sep-13 0:34
Rob Grainger19-Sep-13 0:34 
Generalsomething weird Pin
C.CoderCreator12-Sep-13 18:00
C.CoderCreator12-Sep-13 18:00 
GeneralRe: something weird Pin
Ron Beyer12-Sep-13 18:18
professionalRon Beyer12-Sep-13 18:18 
Its exactly the same as if you had written:

C++
while (true) 
{
    print(2);
}


Although I think that this is not code you've run. First of all "print" isn't a function (nor does it take an integer parameter if it was printf). Next, the "if" statement isn't a check (it will always be true), and it won't compile with all the missing semi-colons.
GeneralRe: something weird Pin
PIEBALDconsult13-Sep-13 3:50
mvePIEBALDconsult13-Sep-13 3:50 
GeneralI, Moron Pin
Clodetta del Mar12-Sep-13 6:41
Clodetta del Mar12-Sep-13 6:41 
GeneralRe: I, Moron Pin
Nagy Vilmos12-Sep-13 6:52
professionalNagy Vilmos12-Sep-13 6:52 
GeneralRe: I, Moron Pin
Clodetta del Mar12-Sep-13 6:56
Clodetta del Mar12-Sep-13 6:56 
GeneralRe: I, Moron Pin
Ron Anders12-Sep-13 6:59
Ron Anders12-Sep-13 6:59 
GeneralRe: I, Moron [modified] Pin
Clodetta del Mar12-Sep-13 7:02
Clodetta del Mar12-Sep-13 7:02 
GeneralRe: I, Moron [modified] Pin
BillW3312-Sep-13 7:37
professionalBillW3312-Sep-13 7:37 
GeneralRe: I, Moron [modified] Pin
Clodetta del Mar12-Sep-13 7:43
Clodetta del Mar12-Sep-13 7:43 
GeneralRe: I, Moron [modified] Pin
BillW3312-Sep-13 7:50
professionalBillW3312-Sep-13 7:50 
GeneralRe: I, Moron [two times modified] Pin
Clodetta del Mar12-Sep-13 8:17
Clodetta del Mar12-Sep-13 8:17 
GeneralRe: I, Moron [two times modified] Pin
Richard Deeming12-Sep-13 8:34
mveRichard Deeming12-Sep-13 8:34 
GeneralRe: I, Moron [two times modified] Pin
Clodetta del Mar12-Sep-13 8:38
Clodetta del Mar12-Sep-13 8:38 
GeneralRe: I, Moron [two times modified] Pin
BillW3312-Sep-13 9:47
professionalBillW3312-Sep-13 9:47 
GeneralRe: I, Moron [two times modified] Pin
Clodetta del Mar12-Sep-13 9:51
Clodetta del Mar12-Sep-13 9:51 
GeneralRe: I, Moron Pin
Rage13-Sep-13 1:35
professionalRage13-Sep-13 1:35 
GeneralRe: I, Moron Pin
Clodetta del Mar13-Sep-13 1:36
Clodetta del Mar13-Sep-13 1:36 
GeneralRe: I, Moron Pin
Jarek Kruza16-Sep-13 0:33
Jarek Kruza16-Sep-13 0:33 

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.