Immutable Objects Are Worth the Effort
Published in
6 min readMar 20, 2020
I have written before about how immutable builders are one of my favorite patterns for writing simple code. The pattern both forces you to think about what the object you are building needs before starting to build it, and it also removes the thinking of what constructors are available. Using tools like Lombok or even (the aptly named) immutables, you can easily create immutable objects and builders that have the same…