Click here to Skip to main content
15,881,709 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: Catastrophic Failure! Pin
Brisingr Aerowing23-Oct-13 12:55
professionalBrisingr Aerowing23-Oct-13 12:55 
GeneralRe: Catastrophic Failure! Pin
BillW335-Nov-13 4:35
professionalBillW335-Nov-13 4:35 
GeneralRe: Catastrophic Failure! Pin
Sentenryu5-Nov-13 6:12
Sentenryu5-Nov-13 6:12 
GeneralRe: Catastrophic Failure! Pin
BillW335-Nov-13 8:46
professionalBillW335-Nov-13 8:46 
GeneralRe: Catastrophic Failure! Pin
patbob21-Feb-14 5:20
patbob21-Feb-14 5:20 
GeneralWhy bother with any other exception data? The message should suffice. Pin
yiangos17-Oct-13 4:16
professionalyiangos17-Oct-13 4:16 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Sentenryu18-Oct-13 1:06
Sentenryu18-Oct-13 1:06 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
yiangos23-Oct-13 6:57
professionalyiangos23-Oct-13 6:57 
Yeah my point exactly. I'd done that same mistake myself, and thankfully it never got past the testing phase: I got that exact error message, and there was no inner exception to see Smile | :) , so after a bit of digging, I simply changed my

C#
throw new Exception(ex.Message);

to

C#
throw;


(Of course, I had an error logging call just before that, otherwise the entire catch block wouldn't make much sense...)

I was just very (unpleasantly) surprised to come across such a basic coding mistake in an online tutorial.
Φευ! Εδόμεθα υπό ρηννοσχήμων λύκων!
(Alas! We're devoured by lamb-guised wolves!)

JokeRe: Why bother with any other exception data? The message should suffice. Pin
ZurdoDev18-Oct-13 5:15
professionalZurdoDev18-Oct-13 5:15 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Lutosław19-Oct-13 5:12
Lutosław19-Oct-13 5:12 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
yiangos23-Oct-13 6:51
professionalyiangos23-Oct-13 6:51 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Bill_Hallahan1-Nov-13 17:35
Bill_Hallahan1-Nov-13 17:35 
GeneralWhy care about descriptive names? Pin
Lutosław16-Oct-13 21:34
Lutosław16-Oct-13 21:34 
JokeRe: Why care about descriptive names? Pin
Kornfeld Eliyahu Peter16-Oct-13 21:47
professionalKornfeld Eliyahu Peter16-Oct-13 21:47 
GeneralRe: Why care about descriptive names? Pin
Lutosław16-Oct-13 22:03
Lutosław16-Oct-13 22:03 
GeneralRe: Why care about descriptive names? PinPopular
Argonia16-Oct-13 23:28
professionalArgonia16-Oct-13 23:28 
GeneralRe: Why care about descriptive names? Pin
Nicholas Marty17-Oct-13 4:30
professionalNicholas Marty17-Oct-13 4:30 
GeneralRe: Why care about descriptive names? Pin
phil.o18-Oct-13 4:12
professionalphil.o18-Oct-13 4:12 
GeneralRe: Why care about descriptive names? Pin
Lutosław19-Oct-13 5:18
Lutosław19-Oct-13 5:18 
GeneralHad a Boss Pin
michaelbarb14-Nov-13 8:58
michaelbarb14-Nov-13 8:58 
GeneralExecutable that requires elevation PinPopular
Michael Haephrati15-Oct-13 11:21
professionalMichael Haephrati15-Oct-13 11:21 
GeneralRe: Executable that requires elevation Pin
Richard Deeming15-Oct-13 12:11
mveRichard Deeming15-Oct-13 12:11 
GeneralRe: Executable that requires elevation Pin
Michael Haephrati15-Oct-13 12:40
professionalMichael Haephrati15-Oct-13 12:40 
GeneralRe: Executable that requires elevation Pin
Rage15-Oct-13 22:56
professionalRage15-Oct-13 22:56 
GeneralRe: Executable that requires elevation Pin
Dave Kreskowiak16-Oct-13 1:30
mveDave Kreskowiak16-Oct-13 1:30 

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.