Page 11
CP4 - Prototype - Learn Design Pattern From Simple Things
Having been with you for a long time, your robot has memories that regular manufacturing can't produce, now you want to clone it. Prototype will be your remedy.
BP2 - Strategy - Learn Design Pattern From Simple Things
As the coach of a strong team, you plan to attack to find a goal and then prioritize possession to preserve the score. This combination is called strategy.
SP2 - Decorator & Function Decorator & Closure - Learn Design Pattern From Simple Things
Having ice creams (popsicle, cone) and curious about how good it will be with extra flavor. For the most authentic experience, you should dip your ice creams in each flavor.
CP3 - Builder - Design Pattern From Simple Things
Building a house involves bringing together many parts, each house has its own specific requirements, you need a builder who can easily implement what you want.
BP1 - Gun (Iterator) - Design Pattern From Simple Things
There are bullets that need to be fired one by one in a specific order. You need a tool to set it up neatly and easily upgrade later.
CP2 - Comparison between Factories: Simple Factory & Factory Method & Abstract Factory - Design Pattern From Simple Things
Simple Factory is da best, Factory Method and Abstract Factory are cumbersome, complicated and stupid?
CP1 - Vending Machine (Factory) - Design Pattern From Simple Things
Different beverages are scattered in different stores, it's too tiring to run through each store to find your beverage. You wish all beverages were sold in one place.
SP1 - Adapter - Learn Design Pattern From Simple Things
Having many devices that need to connect to your Macbook leads to too many cables. You need a tool to replace all those cables.
FBP1 - Google Foobar Plus - Dodge the Lasers!
Level 5: I tried retyping `request` and Google Foobar still revealed the challenge for me