18 October, 2008

Design Myth: Exceptions are for "Exceptional Errors"

Just came across this post from Kryztof that I'm completely in sync with! People tend to be too afraid of Exceptions as something of a big bad wolf. Exceptions are just means for the Server to communicate to the Client, that it is unable to fulfill the promise exposed in the “contracts” (method). No more...

That it might be “heavy” to instantiate an “Exception”-object; I don’t buy that at all. And even more so if we are talking webservices that by design are “slow”. If it presents a problem to you – go buy a faster processor or some more RAM on the machine. The hardware limitations should not affect proper software design, that is for sure!

Link: http://blogs.msdn.com/kcwalina/archive/2008/07/17/ExceptionalError.aspx

No comments:

iPhone/XCode - not all cases are equal!

This bit me! Having made some changes to an iPhone application (Obj-C); everything worked fine in the simulator. But, when deploying the s...