This repository contains examples and notes for design patterns. It is aimed at helping developers understand, apply, and practice design patterns in real-world scenarios.
- Beginner-Friendly: Simple explanations for each pattern without unnecessary complexity.
- Organized Structure: Patterns are categorized into Creational, Structural, and Behavioral groups.
design-patterns/
├── creational/
│ ├── singleton/
│ ├── factory/
| ├── abstractfactory/
| ├── prototype/
│ └── builder/
├── structural/
│ ├── adapter/
│ ├── bridge/
│ └── decorator/
└── behavioral/
├── strategy/
├── observer/
└── state/
Each folder contains:
- README.md: Explanation and use case for the pattern.
- Learn: Deepen your understanding of design patterns.
- Practice: Write in your prefered language following best practices.
- Apply: Integrate patterns into your projects effectively.
- Clone the repository:
git clone /~https://github.com/bytewhisperer11/design-pattern cd design-pattern
- Navigate to a specific pattern folder to review the code and explanation.
- Singleton
- Factory
- Builder
- Adapter
- Bridge
- Decorator
- Strategy
- Observer
- State
Contributions are welcome!
If you have an idea for improvement or a new pattern to add, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License.
For questions or suggestions, feel free to reach out:
GitHub Profile
This repository is a work in progress. New patterns, examples, and notes are being added every now and then.
Keep following to stay updated!