Page 10
BP8 - Visitor - Learn Design Pattern From Simple Things
A doctor examines every patient without the patient changing. That's the Visitor pattern — add operations to objects without modifying them.
BP7 - Template Method - Learn Design Pattern From Simple Things
Every barista follows the same coffee recipe but can swap beans and milk. That's the Template Method pattern from simple everyday things.
BP6 - State - Learn Design Pattern From Simple Things
A traffic light cycles through red, yellow, green — each state has its own behavior. Learn the State design pattern from simple things.
BP5 - Observer - Learn Design Pattern From Simple Things
Subscribers get notified the moment a new video drops. That's the Observer pattern — publishers and listeners fully decoupled.
Bach Ma - From Conquering the Fear to Conquering the Mountain
Bach Ma National Park: a solo trip from fear to the summit. Rain, clouds, waterfalls, and the quiet reward of a rarely-climbed Vietnamese mountain.
BP4 - Handling Chain - Learn Design Pattern From Simple Things
A complaint travels through support tiers until someone handles it. That's the Chain of Responsibility design pattern explained simply.
BP3 - Command - Learn Design Pattern From Simple Things
As an army commander, you have to plan all the tasks for the soldiers, so that they can execute them. This process is called command.
SP3 - Tree - Learn Design Pattern From Simple Things
You need to store the leaves hierarchically, sometimes you will count the leaves. Tree will be a suitable structure to facilitate leaf counting.
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.