
Design Patterns Part 1 – You Create Me!
Coding Blocks
00:00
Is It Still a Builder if It Takes Away?
Is it still a builder if it takes away? Like if I had a Starbucks class or coffee class, and you could say stuff like add parentheses, soy. What if I have a method like remove whip or no whip? Same thing. It's just taking away. You're basically forming what you want this object to look like when it comes back. Well, I can actually back that up with our real world example. Since we were talking about the URI builder, if you were to specify the port as negative one, then it won't include the port when it does the two string on it. Nice. Perfect. Just make a new way to make a destructor. And here we
Transcript
Play full episode