Click here to Skip to main content
15,888,286 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: Have I gone completely mad? Pin
Andy Brummer31-Jul-07 18:57
sitebuilderAndy Brummer31-Jul-07 18:57 
GeneralRe: Have I gone completely mad? Pin
Haroon Sarwar31-Jul-07 22:12
Haroon Sarwar31-Jul-07 22:12 
GeneralRe: Have I gone completely mad? Pin
BadKarma31-Jul-07 22:29
BadKarma31-Jul-07 22:29 
GeneralRe: Have I gone completely mad? Pin
Brady Kelly31-Jul-07 23:46
Brady Kelly31-Jul-07 23:46 
GeneralRe: Have I gone completely mad? Pin
BadKarma31-Jul-07 23:53
BadKarma31-Jul-07 23:53 
GeneralRe: Have I gone completely mad? Pin
Robert Royall1-Aug-07 4:56
Robert Royall1-Aug-07 4:56 
GeneralRe: Have I gone completely mad? Pin
Andy Brummer31-Jul-07 19:00
sitebuilderAndy Brummer31-Jul-07 19:00 
GeneralRe: Have I gone completely mad? Pin
Robert Royall1-Aug-07 5:00
Robert Royall1-Aug-07 5:00 
I could have used foreach instead, but I wanted my code to reflect the fact that I was enumerating the collection only to count it. I tend to think of using foreach as "I'm doing something to each of these items in the collection", so I thought I'd use IEnumerator to specifically call out to myself that I'm only walking the collection and not making any edits.
GeneralRe: Have I gone completely mad? Pin
Andy Brummer1-Aug-07 5:10
sitebuilderAndy Brummer1-Aug-07 5:10 
GeneralRe: Have I gone completely mad? Pin
Robert Royall1-Aug-07 5:26
Robert Royall1-Aug-07 5:26 
GeneralRe: Have I gone completely mad? Pin
Andy Brummer1-Aug-07 5:31
sitebuilderAndy Brummer1-Aug-07 5:31 
JokeRe: Have I gone completely mad? Pin
Robert Royall1-Aug-07 5:38
Robert Royall1-Aug-07 5:38 
GeneralRe: Have I gone completely mad? Pin
Rob Achmann24-Aug-07 3:34
Rob Achmann24-Aug-07 3:34 
GeneralRe: Have I gone completely mad? Pin
Robert Royall24-Aug-07 12:25
Robert Royall24-Aug-07 12:25 
GeneralSoftware Pin
egionare31-Jul-07 6:54
egionare31-Jul-07 6:54 
GeneralRe: Software Pin
Justin Perez31-Jul-07 7:02
Justin Perez31-Jul-07 7:02 
GeneralRe: Software Pin
Paul Conrad31-Jul-07 14:04
professionalPaul Conrad31-Jul-07 14:04 
GeneralRe: Software Pin
Brent Lamborn1-Aug-07 3:25
Brent Lamborn1-Aug-07 3:25 
General:D [modified] Pin
Brent Lamborn31-Jul-07 6:25
Brent Lamborn31-Jul-07 6:25 
GeneralRe: :D Pin
leppie31-Jul-07 21:04
leppie31-Jul-07 21:04 
GeneralRe: :D Pin
Brady Kelly1-Aug-07 1:09
Brady Kelly1-Aug-07 1:09 
GeneralRe: :D Pin
leppie1-Aug-07 1:29
leppie1-Aug-07 1:29 
GeneralRe: :D Pin
Brady Kelly1-Aug-07 1:51
Brady Kelly1-Aug-07 1:51 
GeneralRe: :D Pin
leppie1-Aug-07 1:58
leppie1-Aug-07 1:58 
GeneralRe: :D Pin
Brent Lamborn1-Aug-07 3:22
Brent Lamborn1-Aug-07 3:22 

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.