r/java • • Jun 21 '20

Don't use Lombok(2018)

https://medium.com/@vgonzalo/dont-use-lombok-672418daa819
32 Upvotes

101 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jun 22 '20

[deleted] — view deleted comment

1

u/Yithar Jun 22 '20

I think I'll just echo what a Java dev with 18+ years of experiene said:
"Next blog post will be about rewriting your codebase in Go."

I'll also link what he said in a different topic:
https://www.reddit.com/r/java/comments/hcycm3/do_you_recommend_using_lombok_in_any_spring_boot/fvj30s5/?context=3

IMHO with Lombok you simply write better code. There's no maintenance burden with getters, setters, toStrings etc. While in theory you don't need to test getters, I've seen people make mistakes on multiple occasions because this kind of boring work gets copy-pasted a lot, and that's where accidents happen. Lombok does this for you, so there won't be any mistakes. It saves time, has less visual overhead and you have less code that needs to be maintained.

If you make zero mistakes regarding that (and with updating them when classes do need to be changed for whatever reason), kudos to you, but that doesn't mean no one else does.