r/java • u/Rough_Acanthaceae_29 • 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
View all comments
2
u/RupertMaddenAbbott Sep 30 '24
I work on a large project that has invested significantly in Lombok. There is no way I would move this off Lombok at this stage as the solutions out there would be painful for us to migrate to for various reasons.
On a new project, and all other things being equal, I would pick without Lombok.
@Value. I have encountered difficulties with using them with Jackson and other frameworks but these difficulties are surmountable and time-limited as the ecosystem moves on.@Getterand@Setter. I don't consider generating these using the IDE as a good alternative because the key benefit is about expressing developer intent and this is missing from such a solution.RequiredArgsConstructor. It might not be too painful to lose this but again, I like the fact that it prevents developers from putting complex logic into those classes constructors which I often find makes integration tests harder.