logoalt Hacker News

Lewton • today at 6:23 AM • 2 replies • view on HN

Lombok fucking sucks

@requiredargs sucks, if you rearrange the order of two fields with the same type on a class you invisibly break the code. If you have multiple constructors (requiredargs, allargs) it makes tracing how they’re used using the built in tools of your IDE impossible

@builder fucking sucks, if there’s non-nullable fields and you don’t set them, at best you get a runtime exception. Builder pattern should take non-null args explicitly in the builder() method so when you add a new required field it doesn’t invisibly break code 8 modules away

Only good thing is indeed the log annotation, and to some degree @getter @setter, big whoop


Replies

watwut • today at 10:42 AM

> tracing how they’re used using the built in tools of your IDE impossible

It is possible but requires more key strokes. It is annoying, but possible.

➕ show 1 reply
TheChaplain • today at 8:06 AM

If you don't like it then don't use it and carry on. No need to litter the world with such negativity.

➕ show 1 reply