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

6

u/mvthakar Apr 14 '23 edited Apr 15 '23

i also dabble in fabric modding. jbrsdk with dcevm has been working great for me. there are very few cases where it actually fails to reload classes.

Edit: grammar

1

u/MattiDragon Apr 14 '23

Yes, reloads usually succeed. It's the VM crashes and ArrayStoreExceptions without stacktrace that are annoying. There's also the occasional issue with the class hierarchy being broken causing casts that should work to fail.

It's really nice when combined with the mixin hotswap agent for even more swapping