Skip to content
sang.id.vn
Go back

Design Pattern Overview — Series Introduction

Tiếng Việt

Ever stare at your own code from 6 months ago and wonder why it’s so hard to change anything without breaking something else? I kept running into the same structural problems across projects until I realized most of them had well-known solutions — design patterns.

I put this series together from various sources (mostly Viblo articles) to solidify my own understanding. All examples are in TypeScript. Out of the 250+ patterns the Gang of Four catalogued, about 26 cover most real-world situations. The core idea is simple: separate the parts that are hard to extend into independent objects, then restructure them so future changes don’t cascade.

Note: Design Patterns are not algorithms, and they’re not components.

CreationalStructuralBehavioral
SingletonAdapter/ WrapperChain of Responsibility
FactoryBridgeCommand
Method FactoryCompositeMediator
Abstract FactoryDecoratorMemento
BuilderFacadeObserver
Object PoolProxyStrategy
PrototypeFlyweightVisitor
Dependency InjectionDelegationState
Entity-Attribute-Value (EAV)Repository

Patterns I left out:


Share this post on:

Previous Post
Forward Request from a Path to a Specific Port via .htaccess
Next Post
Behavioral Design Patterns Explained with TypeScript