r/programming • u/[deleted] • 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
r/programming • u/[deleted] • Aug 11 '15
1
u/zimm3r16 Aug 12 '15
Never been a fan of Java but lots of these seem rather over the top.
String literal first? No. Check and log. Provides my info than a silent fail.
Don't trust -1. Yes trust it. Have an else catch or 'drop off' where it logs unexpected errors. Stop silently failing.
Disclaimer: I am no friend to Java ever since I had to deal with people using private. (Yes I know internal, may change, i don't care Android, I want access to my Native C View to resize it and use a java GUI easily!).