Click here to Skip to main content
15,886,963 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: Happy debugging! Pin
Andrei Straut25-Sep-12 0:50
Andrei Straut25-Sep-12 0:50 
GeneralRe: Happy debugging! Pin
dandy7225-Sep-12 1:34
dandy7225-Sep-12 1:34 
GeneralRe: Happy debugging! PinPopular
Pete O'Hanlon25-Sep-12 2:07
mvePete O'Hanlon25-Sep-12 2:07 
GeneralRe: Happy debugging! Pin
Andrei Straut25-Sep-12 2:17
Andrei Straut25-Sep-12 2:17 
GeneralRe: Happy debugging! Pin
Pete O'Hanlon25-Sep-12 2:33
mvePete O'Hanlon25-Sep-12 2:33 
GeneralRe: Happy debugging! Pin
agolddog25-Sep-12 3:49
agolddog25-Sep-12 3:49 
GeneralRe: Happy debugging! Pin
KP Lee25-Sep-12 15:55
KP Lee25-Sep-12 15:55 
GeneralRe: Happy debugging! Pin
SeattleC++25-Sep-12 5:12
SeattleC++25-Sep-12 5:12 
1. A programming language that would even let you do this is broken. I feel so unclean just having read this.

2. Type that into the codebase, and it's only a matter of time before you are the victim; either of forgetting to take it out, or having it used against you.

3. Pranks. Oy! I've worked in organizations where pranks got to be the accepted norm. They are sick and unprofessional organizations. Generally what happens is somebody goes too far. Maybe there is an injury, or a customer gets pranked by accident. Then there is a short, grim meeting where your boss or your division manager or somebody from Personnel lays it on the line saying, "Next prank gets you fired."

A better approach is to make the dumb behavior (not logging) an issue with your colleague, and if he doesn't make an attempt to improve, with your team or your manager. Because your colleague can certainly make the pranking an issue with your manager. Then he will have the moral high ground and you will lose traction on getting the undesirable behavior fixed. If you act unprofessionally because your teammate did, that fixes nothing.
GeneralRe: Happy debugging! Pin
Joe_Dert20-Oct-12 21:50
Joe_Dert20-Oct-12 21:50 
GeneralRe: Happy debugging! Pin
SeattleC++21-Oct-12 9:14
SeattleC++21-Oct-12 9:14 
GeneralRe: Happy debugging! Pin
Joe_Dert21-Oct-12 20:33
Joe_Dert21-Oct-12 20:33 
GeneralRe: Happy debugging! Pin
BobJanova25-Sep-12 5:16
BobJanova25-Sep-12 5:16 
GeneralRe: Happy debugging! Pin
Andrei Straut25-Sep-12 6:45
Andrei Straut25-Sep-12 6:45 
GeneralRe: Happy debugging! Pin
RafagaX25-Sep-12 5:34
professionalRafagaX25-Sep-12 5:34 
GeneralRe: Happy debugging! Pin
Andrei Straut25-Sep-12 6:46
Andrei Straut25-Sep-12 6:46 
GeneralRe: Happy debugging! Pin
Behzad Sedighzadeh25-Sep-12 5:59
Behzad Sedighzadeh25-Sep-12 5:59 
GeneralRe: Happy debugging! Pin
Andrei Straut25-Sep-12 6:50
Andrei Straut25-Sep-12 6:50 
GeneralRe: Happy debugging! Pin
jschell25-Sep-12 7:51
jschell25-Sep-12 7:51 
Generalwell... Pin
shiprat25-Sep-12 9:15
shiprat25-Sep-12 9:15 
GeneralRe: well... Pin
Pete O'Hanlon25-Sep-12 9:53
mvePete O'Hanlon25-Sep-12 9:53 
GeneralRe: well... Pin
shiprat29-Oct-12 12:56
shiprat29-Oct-12 12:56 
GeneralRe: Happy debugging! Pin
Member 822285825-Sep-12 10:03
Member 822285825-Sep-12 10:03 
GeneralRe: Happy debugging! Pin
Richard Deeming26-Sep-12 3:56
mveRichard Deeming26-Sep-12 3:56 
GeneralRe: Happy debugging! Pin
Amit Developer26-Sep-12 4:28
Amit Developer26-Sep-12 4:28 
GeneralRe: Happy debugging! Pin
Le centriste26-Sep-12 6:43
Le centriste26-Sep-12 6:43 

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.