Click here to Skip to main content
15,886,919 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.

 
AnswerRe: Parsing string to Integer with try and catch??? Pin
Marco Bertschi28-Sep-12 4:04
protectorMarco Bertschi28-Sep-12 4:04 
GeneralRe: Parsing string to Integer with try and catch??? Pin
zenwalker19859-Oct-12 17:58
zenwalker19859-Oct-12 17:58 
GeneralHappy debugging! Pin
Andrei Straut23-Sep-12 22:12
Andrei Straut23-Sep-12 22:12 
GeneralRe: Happy debugging! Pin
Brisingr Aerowing24-Sep-12 2:54
professionalBrisingr Aerowing24-Sep-12 2:54 
GeneralRe: Happy debugging! Pin
Patrice STOESSEL24-Sep-12 19:40
Patrice STOESSEL24-Sep-12 19:40 
GeneralRe: Happy debugging! Pin
Andrei Straut24-Sep-12 20:09
Andrei Straut24-Sep-12 20:09 
GeneralRe: Happy debugging! Pin
Sentenryu25-Sep-12 0:11
Sentenryu25-Sep-12 0:11 
GeneralRe: Happy debugging! Pin
Andrei Straut25-Sep-12 0:40
Andrei Straut25-Sep-12 0:40 
Sentenryu wrote:
"oh, they started a war and destroyed themselves, we will teach them a lesson by starting another war!"
makes sense to you?

TBH, actually it does, but I may just have a sick mind OMG | :OMG: . As I said to Patrice, I repeatedly asked for errors to be logged properly, with no result, so this one was somewhat of a last resort, and half-jokingly made.
I'm the one working on the code 80% of the time and writing 80% of it, and I don't want to have to track errors that are hidden.

I may just be a code Nazi, but I've had to work on legacy projects that had no documentation/code formatting/error handling at all, and it's not pleasant.

I try my best to write readable and understandable code, for me as well for those that will come later (as is exactly the case, tomorrow is my last day at the job), and I only ask the same for my colleagues. I can understand when it's not possible for various reasons, but when it does become a habit I take it seriously.

There is also the argument that I could take it to management, but I didn't want to do that, as I've known this chap for quite a while (went to college together, and then we've become work mates too for the last couple of years) and he's quite a nice guy. My gesture was not made with bad or harmful intentions, but more like a tongue-in-cheek of what can happen when you don't properly trace your stuff.
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.

GeneralRe: Happy debugging! Pin
DerekT-P25-Sep-12 1:01
professionalDerekT-P25-Sep-12 1:01 
GeneralRe: Happy debugging! Pin
Andrei Straut25-Sep-12 1:07
Andrei Straut25-Sep-12 1:07 
GeneralRe: Happy debugging! Pin
BrainiacV25-Sep-12 4:11
BrainiacV25-Sep-12 4:11 
GeneralThat was funny but.. Pin
VallarasuS24-Sep-12 22:59
VallarasuS24-Sep-12 22:59 
GeneralRe: Happy debugging! Pin
dandy7225-Sep-12 0:25
dandy7225-Sep-12 0:25 
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 
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 

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.