r/java • u/alexzhitnitsky • 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/
181
Upvotes
r/java • u/alexzhitnitsky • Aug 11 '15
6
u/Wolvereness Aug 12 '15
If I ever catch someone doing number eight (switching method call and functionality just because the object could have gone to another method), I would immediately purpose their expulsion from design discussions. List<List<T>> is not a bug; I know damn well which method I called. Alternatively, just rename a method to "single" or "multiple" and rely on explicit names instead of implicit generics.