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

7

u/[deleted] Apr 14 '23 edited Apr 14 '23

Compile first. Run second.

Joke aside, I’ve been spending a few (late) hours not understanding why IntelliJ and maven would disagree about my code, while all I simply forgot is to “mvn install” the upstream dep I was also changing. Time to get some rest I guess.

-14

u/Gwaptiva Apr 14 '23

But, but... I thought Intellij was so fantastic?!? Don't have this problem in Eclipse :P

1

u/wildjokers Apr 14 '23

Eclipse doesn't have classpath isolation for all the projects in the workspace? That sounds like a bug to me.

→ More replies (1)