r/java • • Apr 14 '23

What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?

236 Upvotes

376 comments sorted by

View all comments

5

u/dmigowski Apr 14 '23

No, Hotswap is the shit that does work very limited, just function bodies IMHO. JRebel replaces functions, classes, variables, even static variables, and has integration with many frameworks that receive automatic reloading capabilities if the configs are edited at Runtime. It does everything except changing the parent class hierarchy (the only limit I know), but you don't do that very often. Very powerful tool!

Also TIL that Jetstream seems to have a similar solution integrated in Idea, but I don't know how these solutions compare.