Click here to Skip to main content
15,895,256 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: Captain Obvious Pin
PIEBALDconsult18-Feb-08 6:59
mvePIEBALDconsult18-Feb-08 6:59 
GeneralRe: Captain Obvious Pin
CPallini18-Feb-08 10:25
mveCPallini18-Feb-08 10:25 
JokeRe: Captain Obvious [modified] Pin
User 238229218-Feb-08 18:05
User 238229218-Feb-08 18:05 
GeneralRe: Captain Obvious Pin
CPallini19-Feb-08 2:24
mveCPallini19-Feb-08 2:24 
GeneralRe: Captain Obvious Pin
PIEBALDconsult19-Feb-08 13:50
mvePIEBALDconsult19-Feb-08 13:50 
GeneralRe: Captain Obvious Pin
Brady Kelly18-Feb-08 19:37
Brady Kelly18-Feb-08 19:37 
GeneralRe: Captain Obvious Pin
liquidplasmaflow19-Feb-08 9:43
liquidplasmaflow19-Feb-08 9:43 
GeneralRe: Captain Obvious Pin
Jitse19-Feb-08 10:10
Jitse19-Feb-08 10:10 
Isn't the question just whether the runtime environment first assigns the old value. I really thought this would just eventually increment the variable. Because it should normally first assign the old value to i, and then increment i. Why should it ever store the old value somewhere first, then increment i, then put that old value back in i? I know I'm wrong, cuz as said before C# gives an infinite loop, but still it's weird.
GeneralRe: Captain Obvious Pin
liquidplasmaflow19-Feb-08 12:24
liquidplasmaflow19-Feb-08 12:24 
GeneralRe: Captain Obvious Pin
Luc Pattyn19-Feb-08 14:45
sitebuilderLuc Pattyn19-Feb-08 14:45 
GeneralRe: Captain Obvious Pin
liquidplasmaflow20-Feb-08 3:58
liquidplasmaflow20-Feb-08 3:58 
GeneralRe: Captain Obvious Pin
Luc Pattyn20-Feb-08 4:25
sitebuilderLuc Pattyn20-Feb-08 4:25 
GeneralRe: Captain Obvious Pin
PIEBALDconsult20-Feb-08 13:45
mvePIEBALDconsult20-Feb-08 13:45 
GeneralRe: Captain Obvious Pin
Luc Pattyn20-Feb-08 15:37
sitebuilderLuc Pattyn20-Feb-08 15:37 
GeneralRe: Captain Obvious Pin
Megidolaon22-Jun-08 23:37
Megidolaon22-Jun-08 23:37 
GeneralRe: Captain Obvious Pin
User 274316219-Feb-08 21:08
User 274316219-Feb-08 21:08 
GeneralA blatant and reckless use of .NET Cache Pin
Vasudevan Deepak Kumar14-Feb-08 1:54
Vasudevan Deepak Kumar14-Feb-08 1:54 
JokeRe: A blatant and reckless use of .NET Cache Pin
Ri Qen-Sin14-Feb-08 14:58
Ri Qen-Sin14-Feb-08 14:58 
GeneralRe: A blatant and reckless use of .NET Cache Pin
CARPETBURNER14-Feb-08 22:41
CARPETBURNER14-Feb-08 22:41 
GeneralRe: A blatant and reckless use of .NET Cache Pin
Paul Conrad17-Feb-08 6:47
professionalPaul Conrad17-Feb-08 6:47 
GeneralRe: A blatant and reckless use of .NET Cache Pin
Emil - Gabriel14-Feb-08 22:53
Emil - Gabriel14-Feb-08 22:53 
GeneralRe: A blatant and reckless use of .NET Cache Pin
Paul Conrad17-Feb-08 6:46
professionalPaul Conrad17-Feb-08 6:46 
GeneralRe: A blatant and reckless use of .NET Cache Pin
J4amieC18-Feb-08 7:01
J4amieC18-Feb-08 7:01 
GeneralAn XSLT version of an old favourite Pin
Rob Grainger13-Feb-08 23:15
Rob Grainger13-Feb-08 23:15 
GeneralRe: An XSLT version of an old favourite Pin
Doc Lobster14-Feb-08 1:58
Doc Lobster14-Feb-08 1:58 

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.