Click here to Skip to main content
15,913,758 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
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 
I think I have to support your statements downvoted by others - you seem to stand allone with your opinion - Not any longer! @All the theorists with the "well tested code"... I learned the lesson not to change production code "on the fly". Because sometime a piece of code looks stupid or ugly - but it's just an undocumented workarround for a bug in an underlaying system or whatever. It's not always good to assume all other programmers are idiots... So if I change (or better "refactor") production code - this is my intention - it's like adding a new feature, and yes if there are unit tests in place, it helps. But @all the "perfect code" guys: If it is a "well tested code"-project, unit tests exists - how likley is it to find a real coding horror, isn't it more likely to find it in the "not so well tested" code bases (unit tests??? - whats a "unit"?). I view myself as a "perfectionist" while coding, code style nazi, refactoring fan,... - but there is a real world out there where "perfection" most times mean: "Not complete crap" - I worked on tons of codes in my life, ranging in style and effort from "bloody beginner" to "code god" but "academic perfection" I have rarely seen in a non trivial product. Don't get me wrong - I'm always a fan of "better/shorter code" - but some commenters may have to go through some real projects (why not let's say > 1million lines of code), and learn to leave the existing code - if nobody complains about it - alone! Rose | [Rose]
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 
GeneralRe: Code Optimize Pin
Rajesh Anuhya17-Jan-12 1:17
professionalRajesh Anuhya17-Jan-12 1:17 
GeneralRe: Code Optimize PinPopular
Rob Grainger17-Jan-12 3:31
Rob Grainger17-Jan-12 3:31 
GeneralRe: Code Optimize Pin
mrchief_200017-Jan-12 11:49
mrchief_200017-Jan-12 11:49 
GeneralRe: Code Optimize Pin
KP Lee17-Jan-12 21:25
KP Lee17-Jan-12 21:25 
GeneralRe: Code Optimize Pin
jschell17-Jan-12 11:50
jschell17-Jan-12 11:50 
GeneralRe: Code Optimize Pin
johannesnestler18-Jan-12 5:22
johannesnestler18-Jan-12 5:22 
GeneralRe: Code Optimize Pin
BobJanova17-Jan-12 1:25
BobJanova17-Jan-12 1:25 
GeneralRe: Code Optimize Pin
Rajesh Anuhya17-Jan-12 1:52
professionalRajesh Anuhya17-Jan-12 1:52 
GeneralRe: Code Optimize Pin
KP Lee17-Jan-12 21:11
KP Lee17-Jan-12 21:11 
GeneralRe: Code Optimize Pin
RobCroll18-Jan-12 15:57
RobCroll18-Jan-12 15:57 
GeneralRe: Code Optimize Pin
wg_self27-Jan-12 4:44
wg_self27-Jan-12 4:44 

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.