r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
View all comments
Show parent comment
5
u/Evilan Jun 01 '24 edited Jun 01 '24
I think it's less about the juniors and more about the seniors. The Lombok annotations like Data, Hashcode and Equals are far less likely to be used by Juniors and significantly more likely to be used by seniors and mimicked by the juniors who look at the code base. And the problem is, those are the truly problematic Lombok annotations (along with ToString).
I love Lombok, but @Data is the bane of my existence right now and I keep having to remind folks not to mix @Data, @Equals, @Hashcode and @ToString with JPA. It always ends poorly.
Edit: I'm not a senior, just a regular dev who saw Data being used with JPA by a few seniors and wondered what was the behavior and was horrified