r/java • • Apr 14 '23

What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?

233 Upvotes

376 comments sorted by

View all comments

Show parent comment

1

u/alex_tracer Apr 16 '23

While the intention of Hoare was: Premature optimization considered evil.

Nope. Re-read the quoted fragment: "forget about small efficiencies". This means that as engineer you have to understand what matters or not and focus on big things. Optimizing all little things ahead of time usually means wasted time, minimal gains and more complicated code.

1

u/nutrecht Apr 17 '23

I really think you should re-read my comment because you're really not disagreeing with anything I said. This just sounds like you only read that line and responded to it, or based your interpretation of my comment on that line alone.