Accname
2D-Graphics enthusiast
- Reaction score
- 1,462
Thanks for your single line of thought.
Well, that API looks like it provides about the same functionality as my maybe, plus some fail-fast flavor stuff.
To be honest, I am not a big friend of Exceptions. In my opinion it inflates the code too much.
Having a big try/catch block around every second line of code is very unpleasant to read and doesnt really make anything easier. If at all, I think having hard-to-read code is even more dangerous then possibly mixing something up with NullPointers.
But I guess this highly depends on the application you are coding.
Well, that API looks like it provides about the same functionality as my maybe, plus some fail-fast flavor stuff.
To be honest, I am not a big friend of Exceptions. In my opinion it inflates the code too much.
Having a big try/catch block around every second line of code is very unpleasant to read and doesnt really make anything easier. If at all, I think having hard-to-read code is even more dangerous then possibly mixing something up with NullPointers.
But I guess this highly depends on the application you are coding.