Click here to Skip to main content
15,889,808 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: Profanity in code Pin
Jonathan C Dickinson27-Aug-12 20:19
Jonathan C Dickinson27-Aug-12 20:19 
GeneralRe: Profanity in code Pin
RafagaX27-Aug-12 4:44
professionalRafagaX27-Aug-12 4:44 
GeneralRe: Profanity in code Pin
Ralph Little27-Aug-12 5:42
Ralph Little27-Aug-12 5:42 
GeneralRe: Profanity in code Pin
Blake Miller27-Aug-12 6:43
Blake Miller27-Aug-12 6:43 
GeneralRe: Profanity in code Pin
Clodetta del Mar27-Aug-12 8:30
Clodetta del Mar27-Aug-12 8:30 
JokeRe: Profanity in code Pin
Chad3F27-Aug-12 11:30
Chad3F27-Aug-12 11:30 
JokeRe: Profanity in code Pin
Shameel27-Aug-12 20:52
professionalShameel27-Aug-12 20:52 
GeneralRe: Profanity in code PinPopular
CHill6028-Aug-12 2:51
mveCHill6028-Aug-12 2:51 
Not quite profanity but ...

Many, many years ago in a far off galaxy ... I had the displeasure of having to work with a code pre-processor that had some irritating "features".

As an expedient solution to some of those features, I inserted a blank line at the top of a key header file to prevent all sorts of errors. Certain colleagues insisted on "tidying up" this blank line, meaning that errors kept coming back ...

My solution: I inserted a comment below that blank line "If you delete the blank line above I will find you, where ever you are, and break your fingers one by one".

It clearly worked. I even got a phone call several years later (having moved on) asking if it was one of my comments ... and did it still stand!
GeneralRe: Profanity in code Pin
dav0idz29-Aug-12 18:36
dav0idz29-Aug-12 18:36 
GeneralRe: Profanity in code Pin
Tom Clement30-Aug-12 15:23
professionalTom Clement30-Aug-12 15:23 
GeneralRe: Profanity in code Pin
Stefan_Lang3-Sep-12 4:21
Stefan_Lang3-Sep-12 4:21 
GeneralRe: Profanity in code Pin
Sander Rossel18-Sep-12 9:30
professionalSander Rossel18-Sep-12 9:30 
GeneralRe: Profanity in code Pin
Brisingr Aerowing18-Sep-12 9:46
professionalBrisingr Aerowing18-Sep-12 9:46 
GeneralRe: Profanity in code Pin
ian dennis11-Oct-12 13:38
ian dennis11-Oct-12 13:38 
GeneralA MySQL horror PinPopular
Bernhard Hiller21-Aug-12 3:25
Bernhard Hiller21-Aug-12 3:25 
GeneralRe: A MySQL horror Pin
Brisingr Aerowing21-Aug-12 8:54
professionalBrisingr Aerowing21-Aug-12 8:54 
GeneralRe: A MySQL horror Pin
Brady Kelly23-Aug-12 21:21
Brady Kelly23-Aug-12 21:21 
GeneralRe: A MySQL horror Pin
hussainnagri24-Aug-12 0:55
hussainnagri24-Aug-12 0:55 
GeneralRe: A MySQL horror Pin
Frans_5512924-Aug-12 1:49
Frans_5512924-Aug-12 1:49 
GeneralRe: A MySQL horror Pin
RafagaX24-Aug-12 4:18
professionalRafagaX24-Aug-12 4:18 
GeneralMySQL: A Horror Pin
Dan Sutton24-Aug-12 7:33
Dan Sutton24-Aug-12 7:33 
GeneralRe: A MySQL horror Pin
Dan Metheus24-Aug-12 12:44
Dan Metheus24-Aug-12 12:44 
GeneralRe: A MySQL horror Pin
Bernhard Hiller26-Aug-12 21:01
Bernhard Hiller26-Aug-12 21:01 
GeneralRe: A MySQL horror Pin
englebart27-Aug-12 5:12
professionalenglebart27-Aug-12 5:12 
GeneralRe: A MySQL horror Pin
Michael Kingsford Gray24-Aug-12 22:47
Michael Kingsford Gray24-Aug-12 22:47 

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.