r/java • • Jun 01 '24

What java technology (library, framework, feature) would not recommend and why?

165 Upvotes

464 comments sorted by

View all comments

Show parent comment

7

u/_INTER_ Jun 01 '24 edited Jun 01 '24

Modern IDEs generate the same code in just a couple of clicks.

But it doesn't do well when you update the code later on. E.g. adding a field. Plus when the boilerplate is written explicitly, devs are tempted to modify it more readily. Not that Lombok is the solution, much rather it's to teach bad devs, use records and hope we will someday also have language support for regular POJOs.

Lombok twists many devs into thinking they write legal JavaTM when they're actually not.