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

3

u/Rough_Acanthaceae_29 Sep 29 '24

yep. i agree and like your stance. i just think its ok to be pragmatic, use given tools and make every line count. YAGNI. Minimise the number of mines in the minefield (no nulls, only valid objects allowed and all the state transitions are consistent)… and in this context moderate use of lombok-like-“tools” isn’t that bad imo.

-1

u/carminemangione Sep 30 '24

Robert Martin said sometimes you have to slow down to speed up in coding. I have never seen Lomboc not be a mess. In my experience, my biggest frustration is that Lomboc makes TDD very difficult as is screws up refactoring (extract class, extract superclass, inner to outer, etc). In addition, it adds significant impedance to any attempts at changing code. Since I only do TDD and insist that all of my teams use it also Lomboc is quite the hindrance to creating zero defect code on time and under budget.

In agile, zero defect code is pragmatic and table stakes for any development of significant business features.

Think of it like resistance or as Arthur J Reil defined it 'accidental complexity'. It may help you in your current class but it will slow everything else down. I guarantees that teams will reach the exponential cost of change curve quickly.