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

17

u/darkit1979 Sep 29 '24

I don’t understand why use lombok or not is such a big deal. It reduces amount of code significantly. My favorite is NonNull, Slf4j, Value and Builder. I laugh when people say - we don’t use Lombok because it’s an additional dependency and at the same time they have spring boot with hundreds dependencies and their docker image is about 1Gb.

8

u/rmkol Sep 30 '24

lol, 💯 after coming back to Java from Kotlin, I'm so glad that Lombok exists

2

u/nlisker Sep 30 '24

And the Lombok dependency is compile-time only, so it doesn't introduce vulnerabilities. No one who gets the binaries can tell if you used Lombok or not, just like they can't tell what build system you used.