Click here to Skip to main content
15,913,361 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: No names, no refences - and not mine. Pin
StM0n6-Jun-13 2:44
StM0n6-Jun-13 2:44 
GeneralRe: No names, no refences - and not mine. Pin
obermd7-Jun-13 9:27
obermd7-Jun-13 9:27 
GeneralRe: No names, no refences - and not mine. Pin
StM0n7-Jun-13 10:08
StM0n7-Jun-13 10:08 
GeneralRe: No names, no refences - and not mine. Pin
Argonia6-Jun-13 3:25
professionalArgonia6-Jun-13 3:25 
GeneralRe: No names, no refences - and not mine. Pin
Sander Rossel6-Jun-13 19:46
professionalSander Rossel6-Jun-13 19:46 
GeneralRe: No names, no refences - and not mine. Pin
Shao Voon Wong6-Jun-13 20:14
mvaShao Voon Wong6-Jun-13 20:14 
GeneralRe: No names, no refences - and not mine. Pin
Simon O'Riordan from UK6-Jun-13 23:06
Simon O'Riordan from UK6-Jun-13 23:06 
GeneralRe: No names, no refences - and not mine. Pin
MSHYYC7-Jun-13 2:50
MSHYYC7-Jun-13 2:50 
Hey, at least with open source you can find that stuff much easier. If a person knows everyone in the world can see the source code they will try to write the best code they can. When the code is hidden things get much worse.

One time after much wrangling I was finally able to sign an NDA to gain access the source code to some e-commerce software that a customer was using but had become discontinued. I can completely understand their reluctance--even "on error goto" style exception handling would be better than nothing. And, it being e-commerce it would've been nice if the transactions were atomic. Even if I wasn't legally obligated to keep the identity of the "offender" a secret I probably still would--it just be cruel to mock them; they deserve our pity.

I have gained access to closed source via NDA on more than one occasion and horror code has ALWAYS been present and prominent. Every. Single. Time. It is a really big factor in why I do not use closed source software to run my business anymore. It is kind of like how people who have worked in a fast food restaurant chains sometimes stop eating the food there.
GeneralRe: No names, no refences - and not mine. Pin
Simon O'Riordan from UK9-Jun-13 21:00
Simon O'Riordan from UK9-Jun-13 21:00 
GeneralRe: No names, no refences - and not mine. Pin
ENOTTY7-Jun-13 3:31
ENOTTY7-Jun-13 3:31 
GeneralRe: No names, no refences - and not mine. Pin
Simon O'Riordan from UK9-Jun-13 21:03
Simon O'Riordan from UK9-Jun-13 21:03 
GeneralRe: No names, no refences - and not mine. Pin
ENOTTY10-Jun-13 2:34
ENOTTY10-Jun-13 2:34 
GeneralRe: No names, no refences - and not mine. Pin
Fabio Franco7-Jun-13 1:23
professionalFabio Franco7-Jun-13 1:23 
GeneralRe: No names, no refences - and not mine. Pin
edmurphy997-Jun-13 1:24
edmurphy997-Jun-13 1:24 
GeneralRe: No names, no refences - and not mine. Pin
RafagaX7-Jun-13 4:57
professionalRafagaX7-Jun-13 4:57 
GeneralRe: No names, no refences - and not mine. Pin
thrakazog7-Jun-13 6:20
thrakazog7-Jun-13 6:20 
GeneralRe: No names, no refences - and not mine. Pin
OriginalGriff7-Jun-13 8:03
mveOriginalGriff7-Jun-13 8:03 
GeneralRe: No names, no refences - and not mine. Pin
Jörgen Andersson7-Jun-13 9:55
professionalJörgen Andersson7-Jun-13 9:55 
JokeRe: No names, no refences - and not mine. Pin
Richard C Bishop7-Jun-13 11:29
professionalRichard C Bishop7-Jun-13 11:29 
JokeRe: No names, no refences - and not mine. Pin
OriginalGriff7-Jun-13 11:43
mveOriginalGriff7-Jun-13 11:43 
JokeRe: No names, no refences - and not mine. Pin
Richard C Bishop7-Jun-13 11:48
professionalRichard C Bishop7-Jun-13 11:48 
GeneralRe: No names, no refences - and not mine. Pin
Rajesh R Subramanian7-Jun-13 20:04
professionalRajesh R Subramanian7-Jun-13 20:04 
GeneralRe: No names, no refences - and not mine. Pin
Clumpco9-Jun-13 22:02
Clumpco9-Jun-13 22:02 
GeneralRe: No names, no refences - and not mine. Pin
Lutosław10-Jun-13 12:51
Lutosław10-Jun-13 12:51 
GeneralRe: No names, no refences - and not mine. Pin
Killzone DeathMan28-Jun-13 6:28
Killzone DeathMan28-Jun-13 6:28 

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.