Click here to Skip to main content
15,890,123 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: Code Optimize Pin
Mohibur Rashid16-Jan-12 16:13
professionalMohibur Rashid16-Jan-12 16:13 
GeneralRe: Code Optimize Pin
Florin Jurcovici16-Jan-12 22:07
Florin Jurcovici16-Jan-12 22:07 
GeneralRe: Code Optimize Pin
YvesDaoust29-Jan-12 21:19
YvesDaoust29-Jan-12 21:19 
GeneralRe: Code Optimize Pin
the Kris17-Jan-12 1:15
the Kris17-Jan-12 1:15 
GeneralRe: Code Optimize Pin
loctrice18-Jan-12 17:38
professionalloctrice18-Jan-12 17:38 
JokeRe: Code Optimize Pin
AspDotNetDev18-Jan-12 18:00
protectorAspDotNetDev18-Jan-12 18:00 
GeneralRe: Code Optimize Pin
cpkilekofp27-Jan-12 8:48
cpkilekofp27-Jan-12 8:48 
GeneralRe: Code Optimize Pin
Snorri Kristjansson17-Jan-12 2:02
professionalSnorri Kristjansson17-Jan-12 2:02 
Agree.
There is another VERY important reason why you should NOT change working production code unless you really must; Don't change tried and tested code!
Ok. this code sample you show us is a bit clumsy but it works, right? So why change it? IMHO a good programmer must learnt NOT to change production code unless it's really really needed.
GeneralRe: Code Optimize PinPopular
BobJanova17-Jan-12 3:25
BobJanova17-Jan-12 3:25 
GeneralRe: Code Optimize Pin
Snorri Kristjansson17-Jan-12 4:00
professionalSnorri Kristjansson17-Jan-12 4:00 
GeneralRe: Code Optimize Pin
BobJanova17-Jan-12 4:27
BobJanova17-Jan-12 4:27 
GeneralRe: Code Optimize Pin
Harley L. Pebley17-Jan-12 4:58
Harley L. Pebley17-Jan-12 4:58 
GeneralMessage Removed Pin
17-Jan-12 23:17
professionalSnorri Kristjansson17-Jan-12 23:17 
GeneralRe: Code Optimize Pin
Nagy Vilmos18-Jan-12 2:23
professionalNagy Vilmos18-Jan-12 2:23 
GeneralRe: Code Optimize Pin
CDP180218-Jan-12 2:58
CDP180218-Jan-12 2:58 
GeneralRe: Code Optimize Pin
Nagy Vilmos18-Jan-12 3:11
professionalNagy Vilmos18-Jan-12 3:11 
GeneralRe: Code Optimize Pin
cpkilekofp27-Jan-12 8:53
cpkilekofp27-Jan-12 8:53 
GeneralRe: Code Optimize Pin
Snorri Kristjansson18-Jan-12 22:23
professionalSnorri Kristjansson18-Jan-12 22:23 
GeneralRe: Code Optimize PinPopular
johannesnestler18-Jan-12 5:19
johannesnestler18-Jan-12 5:19 
GeneralRe: Code Optimize Pin
Jörgen Andersson18-Jan-12 21:28
professionalJörgen Andersson18-Jan-12 21:28 
GeneralRe: Code Optimize Pin
johannesnestler19-Jan-12 1:27
johannesnestler19-Jan-12 1:27 
GeneralRe: Code Optimize Pin
fjdiewornncalwe19-Jan-12 4:03
professionalfjdiewornncalwe19-Jan-12 4:03 
JokeRe: Code Optimize Pin
cpkilekofp27-Jan-12 8:54
cpkilekofp27-Jan-12 8:54 
GeneralRe: Code Optimize Pin
Snorri Kristjansson18-Jan-12 22:28
professionalSnorri Kristjansson18-Jan-12 22:28 
GeneralRe: Code Optimize Pin
Donkey Master17-Jan-12 0:56
Donkey Master17-Jan-12 0:56 

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.