Click here to Skip to main content
15,881,281 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: ERROR_SUCCESS => the successful error Pin
Edward Giles14-Jun-13 21:25
Edward Giles14-Jun-13 21:25 
GeneralNo names, no refences - and not mine. PinPopular
OriginalGriff6-Jun-13 2:25
mveOriginalGriff6-Jun-13 2:25 
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 
Recently, I just took over some project whose variables are full of such naming. I took time to rename all of them with descriptive names and guess what? I found a bug! Wrong lock is held for a shared resource: programmer make this mistake bcos all the locks are named from lock1 to lock39. I found out because I renamed the locks according to the resource they are supposed to protect.
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 
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 

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.