Hacker News new | ask | show | jobs
by 708145_ 41 days ago
Lombok was never relevant, and using Jackson’s or other frameworks’ undesirable runtime sorcery does not make Lombok any more sound.

Adding a pile of annotations throughout your codebase, often five stacked on top of one another, which generate behavior that is not locally visible, was never a sane trade-off for saving a little boilerplate.

2 comments

You don't see assembly or byte code either. That doesn't make your high level language insane. I don't need simple expected behaviors visible "locally" other than that annotation.
Exactly my thoughts. The problem that Lombok tries to solve in obscure ways, can be solved much simpler: with a code generator program. We wrote our own before Lombok was a thing. And in times of AI agents it's even more obsolete now.

Also the argument about Jackson and reflection magic is no longer true since JDK21. All Json frameworks now require explicit default constructors otherwise the throw RuntimeExceptions.