this post was submitted on 09 Apr 2025
9 points (76.5% liked)

Java

1646 readers
8 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 2 years ago
MODERATORS
9
submitted 2 weeks ago* (last edited 2 weeks ago) by Custodian6718 to c/java
 

Java champions and Senior engineers speaking out against lombok

you are viewing a single comment's thread
view the rest of the comments
[โ€“] McMonster 3 points 2 weeks ago (1 children)

Anything that does under-the-cover low level magic is bad. The deeper the magic, the worse. Spring is the particular offender here with the lengths it goes so to make you not use new and never be able to debug why something happens. Or worse, why something doesn't happen. We know how to deal with code, but not magic.

[โ€“] Von_Broheim 2 points 1 week ago

There's no magic in lombok, they're just meta annotations for class generation, no different than having each end every class implement some very specific interface exactly the same way every time. It's for reducing copy pasting. Debugging it is not a problem, especially that you can see the generated classes in the library files. Spring on the other hand is a black box, because it does too much and has become very bloated over the years, the goal of Spring is not to avoid using new the point is simplifying dependency injection and composition. The most fried part is the transaction management imo, because it's too delicate in the way it has to be configured.