This repository contains simple and clear examples of Design Patterns implemented in code.
Each folder focuses on a specific category of patterns, with short explanations and examples that demonstrate their core principles.
-
Creational
Patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation.
Examples: Singleton, Factory Method, Abstract Factory, Builder, Prototype -
Structural
Patterns that focus on object composition, helping to ensure that system components fit together efficiently.
Examples: Adapter, Bridge, Composite, Decorator, Facade, Proxy
The goal of this repository is to:
- Provide clean and minimal code examples for each design pattern
- Help developers understand why and when to use specific patterns
- Serve as a quick reference or learning resource