Pizza-making combining two builder patterns (Bloch's and Go4)
Clash Royale CLAN TAG #URR8PPP .everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 3 down vote favorite I think I just made a very simple way to implement both builder patterns: Bloch builder (for solving telescoping problem). introduction@Medium, Telescoping problem@SO Go4 builder pattern (The most difficult one among those 23) Characters in Go4 builder: Director: Pizza.Maker ConcreteBuilder: Pizza.Recipe I'm also thinking about how to make Builder an abstract interface so one can have more type of recipes (Hot/Sweet/Sour...). The advantages: The client doesn't have to know the ingredient types used by Pizza , just tune the parameters of a pizza using Bloch builder. (In my example it just coincident that they're both int .) The client doesn't have to be an expert in making a pizza, i.e. he/she doesn't have know the actual order of steps of making a pizza, because these steps are handled by the director ...