Lewton
Joined 15 years ago
Joined 15 years ago
@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
They do, during training
Are you trolling
It really irked me when I read it the first time and it drives me nuts that no one else seems to catch this, you’re the first one in some 100 HN threads to point it out
or anyone who's been in a plane?
Citation needed? I can't sit on a bus without spotting some young person using ChatGPT
You don’t have a great mental model of how most people think
Same kind of thing
To be clear, I know how to look up where the class is used, and i know how to look up where constructors (note, plural) for the class is being used, but I have not found a reliable way to find where a specific constructor is being used if the class has multiple