|
|
submitted by
paul_houle
3 months, 26 days ago
gen5.info — 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.
|
|
tags:
C# | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
|