Tag
#creational-patterns
5posts

CP5 - Singleton - Learn Design Pattern From Simple Things
Maintain one phone line indefinitely instead of repeatedly connecting and disconnecting. Learn the Singleton design pattern from simple things.

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.

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.

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
Beverages scattered across stores - too tiring to search each one. Learn how the Factory pattern centralizes object creation cleanly.