193 Views
In any language exceptions are great. They make the problem of handling error's a lot easyier since you don't need to check the values that are being returned from functions which saves in writting lots of code. It also make the code structure better as it clumps the error handling code into a single place which can deal with multiple errors when used correctly.
If you explicitly catch database errors at the lowest level, is the effect lessened?
For the second performance test, I am curious to know the elapsed time if the loop decremented from 20 to 1 (instead of 1 to 20).