Skip to content

Page 10

Tech 6 min read

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.

# Coding
Tech 6 min read

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.

# Coding
Tech 6 min read

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.

# Coding
Tech 8 min read

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.

# Coding
Life 4 min read

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.

# Travel
Tech 3 min read

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.

# Coding
Tech 3 min read

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.

# Coding
Tech 2 min read

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.

# Coding
Tech 3 min read

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.

# Coding
You found a tiny easter egg. Keep poking around!