Hi Simon. Thanks for reading and responding.

I understand what are you saying. Builders are tedious. I like the Immutables library as well, I’ve just used lombok more as it seemed to have more use-case specific control when needed than Immutables (though I could be wrong).

I have personally never found them hard to use personally, but that is only within a codebase that uses them everywhere. Being able to always doMyObject.newBuilder()...build() any and every time I need to create a new object becomes second-nature. Maybe I don’t understand your statement of “the compiler will not tell you when you are ready to use the object.” Could you clarify?

Anyhow, thanks for the comment! Happy Coding!

Jesus follower | husband | IJM advocate | software engineer. I share tips and tools for building great software as a team.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store