r/programming • • Aug 11 '15

Top 10 Useful, Yet Paranoid Java Programming Techniques

http://blog.jooq.org/2015/08/11/top-10-useful-yet-paranoid-java-programming-techniques/
28 Upvotes

35 comments sorted by

View all comments

19

u/pakoito Aug 11 '15

No hidden thrown exceptions please. Fail early, fail better. Check for invariants as soon as possible, preferably at the beginning of a method, and throw/return there.