August 21, 2020
//
7 minute read
A Functional Approach to The Builder Pattern
As a coder, the builder pattern is my go-to. It makes data setup extremely easy – instantiate a class, chain some methods together, and finish by executing a build method. However, every time I write a builder class, I can’t help but wonder if there’s a more functional approach that completely removes state.