Featured Post

Memoization

I was recently cleaning up a snippet of JavaScript that did something like the following. var run = function(){ var links = document.getElementById('results').getElementsByTagName('a'); // some more code dealing with the DOM // bla bla bla..... // test for host and make decision based off or...

Read More

Exceptions vs Failure Return Codes

Posted by Ryan | Posted in Public | Posted on 29-04-2010

0

http://codeutopia.net/blog/2010/03/11/should-a-failed-function-return-a-value-or-throw-an-exception/

Quick read on when to use exceptions vs when to use return codes.  I think the author does a good job of making something that is a gray area for some developers a little more black and white.

Write a comment