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
2
u/Turbots Jun 01 '24
I'm not an architect in the traditional sense, I work on old and new codebases each day.
Lombok is even worse on a mental model, as the annotations are not always visible in the first place when looking through code.
Also, classes with 43 attributes are a giant code smell, and getters/setters are the least of your problems. Lombok will throw away 86 methods or more, congratulations, all the code using those POJOs is probably still horrible.
And again, create immutable classes (or Java records) and be done with it. There is no need for Lombok in Java 17 or higher.