Dave Balzer

Confessions of a Webgypsy

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Blog Roll

Subscriptions

Post Categories



Please Don't Use Error Handling

<Rant>
That's Right.  I'm asking you, PLEASE STOP USING ERROR HANDLING!  At least until you learn to do it properly that is.  I'm currently working on some code that a so-called mid-level developer put together.  Everywhere I look in the application there are Try Catch blocks.  The problem I have is that it looks something like this:

Try
    'do something cool here
Catch ex as exception
    Throw New ex
End Try

WHAT???  You mean you bothered wrapping your code in a try catch just to throw the exception in the end as is with no other action?  WHY?  Don't you realize it's going to throw the exception anyways?
</Rant>

Sorry for the rant.  I wouldn't be nearly as upset with this from a junior developer, but this guy claims to have 3+ years vb.net experience and continuously tells me how efficient his code is.

posted on Tuesday, May 17, 2005 8:12 PM by dbalzer





Powered by Dot Net Junkies, by Telligent Systems