https://github.com/kuuhaku86/design-patterns
Design Pattern in Various Language
https://github.com/kuuhaku86/design-patterns
dart design-patterns examples golang javascript php python3 ruby templates
Last synced: 8 months ago
JSON representation
Design Pattern in Various Language
- Host: GitHub
- URL: https://github.com/kuuhaku86/design-patterns
- Owner: kuuhaku86
- License: mit
- Created: 2021-10-14T13:56:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T06:22:30.000Z (almost 4 years ago)
- Last Synced: 2025-08-02T09:38:44.349Z (9 months ago)
- Topics: dart, design-patterns, examples, golang, javascript, php, python3, ruby, templates
- Language: PHP
- Homepage:
- Size: 1.52 MB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Design Patterns
Design Pattern Example in Various Language
## What is Design Pattern?
Design patterns represent the best practices used by experienced object-oriented software developers. Design patterns are solutions to general problems that software developers faced during software development. These solutions were obtained by trial and error by numerous software developers over quite a substantial period of time.
## Type of Design Pattern
We can group design pattern into three categories.
### Creational Patterns
These design patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new operator. This gives program more flexibility in deciding which objects need to be created for a given use case.
### Structural Patterns
These design patterns concern class and object composition. Concept of inheritance is used to compose interfaces and define ways to compose objects to obtain new functionalities.
### Behavioral Patterns
These design patterns are specifically concerned with communication between objects.
## Example of Design Pattern
There is example design pattern for every type.
Type
Example
Structural Patterns
Adapter
Bridge
Composite
Decorator
Facade
Flyweight
Proxy
Creational Patterns
Abstract Factory
Builder
Factory Method
Object Pool
Prototype
Singleton
Behavioral Patterns
Chain of Responsibility
Interpreter
Iterator
Mediator
Memento
Null Object
Observer
State
Strategy
Template Method
Visitor
## Link for Project Design
- https://drive.google.com/drive/folders/1_NgANqSiI5ocgHpWbUWiWy2_Ys0v_frU?usp=sharing
## Source
- https://www.tutorialspoint.com/design_pattern/design_pattern_overview.htm
- https://sourcemaking.com/design_patterns