Click here to Skip to main content
15,884,298 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: Straight from the horse's mouth Pin
Bernhard Hiller12-Feb-12 21:41
Bernhard Hiller12-Feb-12 21:41 
GeneralRe: Straight from the horse's mouth Pin
CDP180212-Feb-12 22:07
CDP180212-Feb-12 22:07 
GeneralRe: Straight from the horse's mouth Pin
BobJanova12-Feb-12 23:05
BobJanova12-Feb-12 23:05 
GeneralRe: Straight from the horse's mouth Pin
CDP180213-Feb-12 0:03
CDP180213-Feb-12 0:03 
GeneralRe: Straight from the horse's mouth Pin
BobJanova13-Feb-12 3:45
BobJanova13-Feb-12 3:45 
GeneralRe: Straight from the horse's mouth Pin
Rob Grainger13-Feb-12 4:35
Rob Grainger13-Feb-12 4:35 
GeneralRe: Straight from the horse's mouth Pin
Frank Peelo14-Feb-12 0:49
Frank Peelo14-Feb-12 0:49 
GeneralRe: Straight from the horse's mouth Pin
Rob Grainger13-Feb-12 4:39
Rob Grainger13-Feb-12 4:39 
As I stated in my original post "OK, its harmless enough", maybe you didn't read that far.

I'd hope the compiler would eliminate this, I'd be surprised if it didn't. However, you can say the same for a myriad of things, such as unused local variables. Should I stop removing such things from my code - after all the compiler will sort out the mess for me, never mind the poor developer's who have to try and understand my code.

I'm sure the original writer is doing OK - he's writing code for Microsoft, so presumably is up to the task, but my point was that you'd hope tutorial code would illustrate good coding practices.
GeneralRe: Straight from the horse's mouth Pin
Dan Neely13-Feb-12 17:31
Dan Neely13-Feb-12 17:31 
GeneralRe: Straight from the horse's mouth Pin
Marc Greiner at home14-Feb-12 4:58
Marc Greiner at home14-Feb-12 4:58 
GeneralRe: Straight from the horse's mouth Pin
CDP180214-Feb-12 5:36
CDP180214-Feb-12 5:36 
GeneralRe: Straight from the horse's mouth Pin
Rob Grainger14-Feb-12 8:53
Rob Grainger14-Feb-12 8:53 
GeneralRe: Straight from the horse's mouth Pin
GibbleCH13-Feb-12 6:16
GibbleCH13-Feb-12 6:16 
GeneralRe: Straight from the horse's mouth Pin
Jeremy Hutchinson14-Feb-12 1:30
professionalJeremy Hutchinson14-Feb-12 1:30 
GeneralRe: Straight from the horse's mouth Pin
Vladimir Svyatski13-Feb-12 20:21
professionalVladimir Svyatski13-Feb-12 20:21 
GeneralRe: Straight from the horse's mouth Pin
Fran Porretto14-Feb-12 1:06
Fran Porretto14-Feb-12 1:06 
GeneralRe: Straight from the horse's mouth Pin
User 483504714-Feb-12 3:13
User 483504714-Feb-12 3:13 
GeneralRe: Straight from the horse's mouth Pin
BrainiacV14-Feb-12 3:58
BrainiacV14-Feb-12 3:58 
GeneralRe: Straight from the horse's mouth Pin
Massimo Perrone14-Feb-12 5:37
Massimo Perrone14-Feb-12 5:37 
GeneralRe: Straight from the horse's mouth Pin
Zan Lynx14-Feb-12 7:00
Zan Lynx14-Feb-12 7:00 
GeneralRe: Straight from the horse's mouth Pin
AspDotNetDev14-Feb-12 7:33
protectorAspDotNetDev14-Feb-12 7:33 
GeneralRe: Straight from the horse's mouth Pin
  Forogar  14-Feb-12 7:49
professional  Forogar  14-Feb-12 7:49 
GeneralRe: Straight from the horse's mouth Pin
KP Lee14-Feb-12 12:51
KP Lee14-Feb-12 12:51 
GeneralRe: Straight from the horse's mouth Pin
Patrick Harris19-Feb-12 19:21
Patrick Harris19-Feb-12 19:21 
GeneralRe: Straight from the horse's mouth Pin
JackDingler14-Feb-12 8:31
JackDingler14-Feb-12 8:31 

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.