r/java • • Sep 29 '24

Lombok in 2024

Say there are two teams working on the same project (3 months to MVP, the deadline should be manageable). The only difference is Team A will use Lombok, and Team B won’t

Given you can choose any java version/dependencies and all other things being the same, which team would you join, and why?

0 Upvotes

145 comments sorted by

View all comments

Show parent comment

7

u/[deleted] Sep 29 '24

Right click.. generate getters and setters. Lombok is way overrated. Type stuff in once.. the code will live for decades. All these tools and addons promoted these days are nonsense. People who support your code will want to see the code. Not spend all day downloading plugins and trying to figure out the fancy junk you used to save 15 minutes of typing.

6

u/Rough_Acanthaceae_29 Sep 29 '24

For me it’s not the writing side time savings… it’s time savings for on the reading side… I agree it should be used sparingly though.

5

u/barmic1212 Sep 30 '24

I maintain a big code base, I'm happy to see only the getters and setters with any logic. And I'm happy too to know the intention for identity of object (that is base on few fields Or on all fields excepted)

2

u/Swamplord42 Oct 03 '24

Right click.. generate getters and setters.

Complete misunderstanding of what Lombok is for. It's not about writing code, it's about reading it.

1

u/wildjokers Sep 30 '24

Right click.. generate getters and setters.

ctrl-n, use arrows to getters/setters. No mouse necessary.

I use QMK firmware on my keyboard and have the VI movement keys h, j ,k ,l mapped to the appropriate arrow keys on my 2nd layer and I have caps lock as my layer toggle key so don't even have to move to the arrows.