Link Details

Link 101212 thumbnail
User 281687 avatar

By paul_houle
via gen5.info
Published: Aug 05 2008 / 11:22

Too many programmers catch exceptions too often, causing both mainline and error handling logic to be complex and error-prone. Although C#, PHP and other languages don't make the mistake that Java made with Checked Exceptions, Java trained a generation of programmers in bad habits. A strategy that (i) uses finally as the first resort for containing corrupting and maintaining invariants, (ii) uses catch locally when the exceptions thrown in an area are completely understood, and (iii) surrounds independent units of work with try-catch blocks is an effective basis for using exceptions that can be built upon to develop an exception handling policy for a particular application.
  • 41
  • 10
  • 6214
  • 3

Comments

Add your comment
User 314131 avatar

StephenCronin replied ago:

0 votes Vote down Vote up Reply

Site seems to be down, for me at least. Shame as I really wanted to read this...

User 314131 avatar

StephenCronin replied ago:

0 votes Vote down Vote up Reply

It's back now. Must just have been down for a few hours.

User 281687 avatar

paul_houle replied ago:

0 votes Vote down Vote up Reply

That article got on the front page of reddit, and that killed my $30 VPS with too little RAM. Ordering a dedi later today.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax