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 comments

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.

17

u/neckbeardfedoras Apr 14 '23

Your problem is people are lazy or a lot of times see more job security by not simplifying things.

4

u/CartmansEvilTwin Apr 15 '23

Not laziness, but loss of control (or better: fear of loss of the illusion of conrol)

These guys are responsible for these DBs and their asses are on the line, if something goes wrong. That's why they want to do everything themselves or review everything that is being done - even if in reality they wouldn't see any non-obvious error anyway. But they still have the illusion of control.

Automation takes that away.

1

u/neckbeardfedoras Apr 15 '23

Not only can you automate db management, but you could also automate change validation. To where you actually have more confidence in production migrations, not less. That'd probably really blow their minds.

→ More replies (1)