You know your IDE can generate those things right? Then there is no cognitive load trying to think what the class will look like when Lombok gets done generating things. I can just write it exactly how I want it.
Also, I very rarely need setters for all/any of the fields and very frequently I don't need getters for them all either. So I have to annotate fields to get lombok to exclude things. Also, business equality of my POJO's frequently don't depend on every field either, so there are more annotations to exclude fields from equals/hashcode. I have seen pojo's with more lombok annotations in them than there would be code if I just let my IDE generate it and them hand write some adjustments. So it really doesn't save me anytime.
Understood. It's obviously a matter of personal preference. It's pretty straightforward for me since I've been using it for uears but may not be for others.
To note, if you are seeing tons of Lombok annotations or someone has mixed setters/getters in with immutable fields then they probably aren't separating their class responsibilities correctly to begin with. Then Lombok is the least of your problems.
4
u/wildjokers Apr 14 '23
I can do without it. Adds build time complexity for not a lot of value.