Skip to content

Tag

#behavioral-patterns

10posts

Software Craft5 min read

BP10 - Mediator - Learn Design Pattern From Simple Things

Airport control towers don't let pilots talk directly - they route everything through a hub. That's the Mediator design pattern.

#design-patterns#behavioral-patterns
Software Craft5 min read

BP9 - File History - Learn Design Pattern From Simple Things

Undo and redo look simple on the surface, but how do they work internally? Learn the Memento pattern from simple editing software.

#design-patterns#behavioral-patterns
Software Craft6 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.

#design-patterns#behavioral-patterns
Software Craft6 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.

#design-patterns#behavioral-patterns
Software Craft6 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.

#design-patterns#behavioral-patterns
Software Craft8 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.

#design-patterns#behavioral-patterns
Software Craft3 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.

#design-patterns#behavioral-patterns
Software Craft3 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.

#design-patterns#behavioral-patterns
Software Craft3 min read

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.

#design-patterns#behavioral-patterns
Software Craft3 min read

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.

#design-patterns#behavioral-patterns