Showing posts with label implementation. Show all posts
Showing posts with label implementation. Show all posts

Thursday, May 10, 2012

Wednesday, May 9, 2012

How to improve the builder pattern?


Motivation



Recently I searched for a way to initialize a complex object without passing a lot of parameter to the constructor. I tried it with the builder pattern, but I don't like the fact, that I'm not able to check at compile time if I really set all needed values.