Click here to Skip to main content
11,438,226 members (66,093 online)

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.

 
GeneralRe: Bug of the day Pin
Richard Deeming12-Jun-13 5:25
professionalRichard Deeming12-Jun-13 5:25 
GeneralRe: Bug of the day Pin
BobJanova12-Jun-13 5:37
memberBobJanova12-Jun-13 5:37 
GeneralRe: Bug of the day Pin
Klaus-Werner Konrad12-Jun-13 23:39
memberKlaus-Werner Konrad12-Jun-13 23:39 
GeneralRe: Bug of the day Pin
BobJanova13-Jun-13 0:39
memberBobJanova13-Jun-13 0:39 
GeneralRe: Bug of the day Pin
Jacek Gajek14-Jun-13 2:13
memberJacek Gajek14-Jun-13 2:13 
GeneralRe: Bug of the day Pin
Klaus-Werner Konrad14-Jun-13 3:35
memberKlaus-Werner Konrad14-Jun-13 3:35 
GeneralRe: Bug of the day Pin
BobJanova14-Jun-13 4:31
memberBobJanova14-Jun-13 4:31 
GeneralRe: Bug of the day Pin
BobJanova14-Jun-13 4:30
memberBobJanova14-Jun-13 4:30 
They're not useless warnings, they're warning you that you did something unintended. Actually this wouldn't compile at all in C#, even with unsafe mode turned on, because the result type isn't boolean. It's a classic and well known piece of C code, and I think you only got a warning for the empty loop body (and if you did if(a = 3) by accident you were just screwed, hence writing if(3 == a) instead which is an error if you screw it up).
GeneralRe: Bug of the day Pin
Jacek Gajek14-Jun-13 5:31
memberJacek Gajek14-Jun-13 5:31 
GeneralRe: Bug of the day Pin
Ravi Bhavnani12-Jun-13 6:42
professionalRavi Bhavnani12-Jun-13 6:42 
GeneralRe: Bug of the day [modified] Pin
ProgramFOX14-Jun-13 3:23
member ProgramFOX14-Jun-13 3:23 
GeneralRe: Bug of the day Pin
anton_l12-Jun-13 20:53
memberanton_l12-Jun-13 20:53 
GeneralRe: Bug of the day Pin
KP Lee13-Jun-13 21:45
memberKP Lee13-Jun-13 21:45 
GeneralRe: Bug of the day Pin
YvesDaoust12-Jun-13 22:08
memberYvesDaoust12-Jun-13 22:08 
GeneralRe: Bug of the day Pin
Gary Wheeler13-Jun-13 1:13
memberGary Wheeler13-Jun-13 1:13 
GeneralRe: Bug of the day Pin
BobJanova13-Jun-13 1:54
memberBobJanova13-Jun-13 1:54 
GeneralRe: Bug of the day Pin
Gary Wheeler13-Jun-13 2:08
memberGary Wheeler13-Jun-13 2:08 
GeneralRe: Bug of the day Pin
BobJanova13-Jun-13 3:12
memberBobJanova13-Jun-13 3:12 
GeneralRe: Bug of the day Pin
Cornelius Henning13-Jun-13 5:13
memberCornelius Henning13-Jun-13 5:13 
GeneralRe: Bug of the day Pin
Gary Wheeler13-Jun-13 5:21
memberGary Wheeler13-Jun-13 5:21 
GeneralRe: Bug of the day Pin
cjb11020-Jun-13 3:37
membercjb11020-Jun-13 3:37 
GeneralRe: Bug of the day Pin
Gary Wheeler24-Jun-13 1:21
memberGary Wheeler24-Jun-13 1:21 
GeneralRe: Bug of the day Pin
StatementTerminator13-Jun-13 6:21
memberStatementTerminator13-Jun-13 6:21 
JokeRe: Bug of the day Pin
Bernhard Hiller12-Jun-13 22:27
professionalBernhard Hiller12-Jun-13 22:27 
GeneralRe: Bug of the day Pin
R. Erasmus12-Jun-13 22:38
memberR. Erasmus12-Jun-13 22:38 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150506.1 | Last Updated 7 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid