https://github.com/pythonhacker/designpatterns
Object-oriented design patterns implemented in the Pythonic way
https://github.com/pythonhacker/designpatterns
Last synced: over 1 year ago
JSON representation
Object-oriented design patterns implemented in the Pythonic way
- Host: GitHub
- URL: https://github.com/pythonhacker/designpatterns
- Owner: pythonhacker
- License: mit
- Created: 2017-05-07T07:19:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T07:06:22.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T14:42:08.223Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## A Pythonic approach to Design Patterns
This repo hosts a set of implementations of G4 design-patterns in idiomatic Python.
1. Week #1 [08-05-2017] - Four variants of the singleton pattern including a shared-memory singleton.
2. Week #2 [15-05-2017] - The Prototype pattern - simple, meta-class based, prototype-factory & prototype+singleton combo.
3. Week #3 [13-06-2017] - The builder pattern - An example demonstrating building different versions of houses with different combinations of rooms, windows and porches.