Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like Lombok. The best annotation is @Builder. It makes working with records much more convenient.


https://github.com/Randgalt/record-builder

The upsides are: - it generates code and does not do anything funky with internals, - it has a lot of knobs if you need something a little different.

The downside is that it does not provide you with the other Lombok annotations. In practice that has been OK!


Besides this I'd also point to Immutables and AutoValue which both can make builders without touching jvm internals.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: