# Lombok

9 Hacker News commenters recommended Lombok and 13 criticized it, November 2025 to November 2026. It was recommended in 4 of 13 months.

**Verdict:** Developers recommend Lombok for cutting Java boilerplate with annotations and denser code. Common caveat: generated behavior is not visible in the source, and it hooks into javac internals.

## Why people recommend it

- Denser code expressing intent (2 comments): "it surely saves some tokens since it just expresses the intention of the code in a denser way" ([source](https://news.ycombinator.com/item?id=50149606)) "I don't need simple expected behaviors visible "locally" other than that annotation." ([source](https://news.ycombinator.com/item?id=50151534))
- Common part of Java toolchains (2 comments): "I was happy with IDE/static checkers, lombok, mapstruct, etc." ([source](https://news.ycombinator.com/item?id=49714088)) "In Java we needed Lombok and builder patterns." ([source](https://news.ycombinator.com/item?id=46530675))

## What people warn about

- Hidden behavior not locally visible (3 comments): "generate behavior that is not locally visible, was never a sane trade-off for saving a little boilerplate" ([source](https://news.ycombinator.com/item?id=50148765)) "if you rearrange the order of two fields with the same type on a class you invisibly break the code" ([source](https://news.ycombinator.com/item?id=50149004)) "I just have issue with what happens under the hood." ([source](https://news.ycombinator.com/item?id=50153842))
- Less useful in modern Java (3 comments): "Lombok is, IMO, an artefact of the years of Sun neglect of Java the language, a workaround." ([source](https://news.ycombinator.com/item?id=50149067)) "Quality of life libraries like Lombok (or my library) are now anachronisms." ([source](https://news.ycombinator.com/item?id=50110023)) "If you write modern Java, Lombok really doesn't add much." ([source](https://news.ycombinator.com/item?id=50154785))
- Hacks into javac internals (2 comments): "Project Lombok rewrites code, however it misuses annotation processing." ([source](https://news.ycombinator.com/item?id=47230067)) "Lombok hacks into javac and manipulates the AST." ([source](https://news.ycombinator.com/item?id=49723215))
- Hard-to-remove build dependency (2 comments): "you get the Lombok problem, where you have this build dependency that refuses to go away" ([source](https://news.ycombinator.com/item?id=46739045)) "If you ditch lombok everything gets a lot easier." ([source](https://news.ycombinator.com/item?id=48599345))

## Alternatives hackers recommend

- [Apache Commons](https://hackerapproved.com/p/apache-commons.md): 8 recommend
- [Google Guava](https://hackerapproved.com/p/guava.md): 7 recommend
- [LMAX Disruptor](https://hackerapproved.com/p/lmax-disruptor.md): 6 recommend
- [Java Vector API](https://hackerapproved.com/p/java-vector-api.md): 5 recommend

## Cite as

Hacker Approved, "Lombok", https://hackerapproved.com/p/lombok/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
