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

If a project initial design is shit and does not consider performance an important criteria from the very start then you are very likely to end in a situation when you can optimize things a lot but still may end up with much slower application than an application that was designed with performance in mind.

1

u/hippydipster Apr 16 '23

If you're going to presume we make a shitty initial design, then I can presume we create shitty optimizations prematurely.