Click here to Skip to main content
15,887,485 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: The joys of outsourcing Pin
Marc Clifton31-Jan-17 11:31
mvaMarc Clifton31-Jan-17 11:31 
GeneralRe: The joys of outsourcing Pin
Bernhard Hiller31-Jan-17 21:34
Bernhard Hiller31-Jan-17 21:34 
GeneralI'm a-feared Pin
Marc Clifton30-Jan-17 5:35
mvaMarc Clifton30-Jan-17 5:35 
GeneralRe: I'm a-feared Pin
Sander Rossel30-Jan-17 6:08
professionalSander Rossel30-Jan-17 6:08 
GeneralRe: I'm a-feared Pin
#realJSOP30-Jan-17 6:35
mve#realJSOP30-Jan-17 6:35 
GeneralRe: I'm a-feared Pin
Tim Carmichael30-Jan-17 8:51
Tim Carmichael30-Jan-17 8:51 
GeneralRe: I'm a-feared Pin
Sander Rossel30-Jan-17 9:03
professionalSander Rossel30-Jan-17 9:03 
GeneralRe: I'm a-feared Pin
Sander Rossel30-Jan-17 9:00
professionalSander Rossel30-Jan-17 9:00 
John Simmons / outlaw programmer wrote:
Poorly written code really needs to be refactored, but really can't be because that same code probably doesn't have any comments, supporting technical documentation, and/or documented requirements.
Indeed, yet that's most of the code I've come across.
Now are you too afraid to touch code like that even when it's necessary? Because I know people who are.
I've met a developer who was afraid to throw away some code that was never reached, something like if (false) { ... } (maybe some test code once?) because "what if that code DOES do something?" What the hell, that code never did, never does and never will do anything so just friggin delete it already!
And here's a real gem, "I'm not sure if this code, that is in source control, is used so I'm going to comment out this block instead of deleting it completely (and I mean committing it like that)." What the hell do you even know how code works!?

I agree that some code SHOULD not be touched because the chances of it breaking are far to big.
However, ultimately not being able to find out what some code does or even not daring to change it after you've found out is just an indication of not knowing what the hell you're doing.

GeneralRe: I'm a-feared Pin
Pualee31-Jan-17 4:32
Pualee31-Jan-17 4:32 
GeneralRe: I'm a-feared Pin
Sander Rossel31-Jan-17 8:57
professionalSander Rossel31-Jan-17 8:57 
GeneralRe: I'm a-feared Pin
Pualee31-Jan-17 4:27
Pualee31-Jan-17 4:27 
GeneralRe: I'm a-feared Pin
Sander Rossel31-Jan-17 9:01
professionalSander Rossel31-Jan-17 9:01 
GeneralRe: I'm a-feared Pin
Rob Grainger31-Jan-17 5:36
Rob Grainger31-Jan-17 5:36 
GeneralRe: I'm a-feared Pin
Jeremy Falcon30-Jan-17 6:45
professionalJeremy Falcon30-Jan-17 6:45 
GeneralRe: I'm a-feared Pin
Marc Clifton30-Jan-17 11:21
mvaMarc Clifton30-Jan-17 11:21 
GeneralRe: I'm a-feared Pin
Jeremy Falcon30-Jan-17 11:22
professionalJeremy Falcon30-Jan-17 11:22 
GeneralRe: I'm a-feared Pin
Marc Clifton30-Jan-17 12:08
mvaMarc Clifton30-Jan-17 12:08 
GeneralRe: I'm a-feared Pin
Jeremy Falcon30-Jan-17 12:51
professionalJeremy Falcon30-Jan-17 12:51 
GeneralRe: I'm a-feared Pin
Bernhard Hiller30-Jan-17 23:37
Bernhard Hiller30-Jan-17 23:37 
RantA database view that affects the underlying data?! Pin
PIEBALDconsult26-Jan-17 7:27
mvePIEBALDconsult26-Jan-17 7:27 
GeneralRe: A database view that affects the underlying data?! Pin
Brisingr Aerowing26-Jan-17 8:12
professionalBrisingr Aerowing26-Jan-17 8:12 
GeneralMessage Removed Pin
26-Jan-17 8:51
professionalN_tro_P26-Jan-17 8:51 
GeneralRe: A database view that affects the underlying data?! Pin
Eddy Vluggen26-Jan-17 9:43
professionalEddy Vluggen26-Jan-17 9:43 
GeneralRe: A database view that affects the underlying data?! Pin
PIEBALDconsult26-Jan-17 15:12
mvePIEBALDconsult26-Jan-17 15:12 
GeneralMessage Removed Pin
27-Jan-17 3:22
professionalN_tro_P27-Jan-17 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.