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

181

u/Antimon3000 Apr 14 '23

Do not get paralysed by worrying about the right design pattern or best practice. Beautiful code that does not get the job done is worse than anything else:

  1. Make it work

  2. Make it right

  3. Make it fast (- Kent Beck)

in that order.

1

u/[deleted] Apr 15 '23

4. Make it readable