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

3

u/cowinabadplace Aug 12 '15 edited Aug 12 '15

Yo, what's with the if (5=a) business. I don't know why he randomly mentions Javascript. This is not a thing you have to worry about in Java except for boolean literals, which are generally better as enums anyway.

Added to pad to 10?

3

u/GUIpsp Aug 12 '15

And you wouldn't use == on a boolean anyways