Some language features are just plain ugly. The first time you see them, you say to yourself, “If I ever have to use that, there’s something wrong with my design.” And most of the time you’d be right.
Designing a Builder At this point, it becomes worthwhile to consider implementing the Builder pattern. The Builder object creates an object incrementally by allowing the client to select the options ...
In my two immediately previous posts, I looked at reducing the number of parameters required for a constructor or method invocation via custom types and parameter objects. In this post, I look at use ...