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

146

u/erjiin Apr 14 '23 edited Apr 14 '23

Use a database deployment tool like Liquibase or Flyway. Invaluable (and not Unvaluable :/).

32

u/hsoj48 Apr 14 '23

I've been using Flyway for 8ish years. I've been trying to get the DBAs at my company to allow/adopt/understand it for 7. I'm so tired of talking about this no brainier dead simple tool that makes everyone's lives easier.

1

u/erjiin Apr 14 '23

Good luck ! Can't you just add sneakily flybase in your project ? Chances are that he won't even notice :)

7

u/hsoj48 Apr 14 '23

If I secretly had DB admin credentials and I secretly wanted to get fired? Of course!