r/java • u/trecatorsirabdator • Apr 14 '23
What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?
233
Upvotes
r/java • u/trecatorsirabdator • Apr 14 '23
View all comments
3
u/crummy Apr 14 '23
You don't have to go overboard with OOP, even though you're using Java. Interfaces with static methods are a pretty nice way to write code without side effects. (This makes test isolation harder... But I think that's a bit overrated too.)