This repository is part of the Refactoring.Guru project.
It contains Python examples for all classic GoF design patterns.
Each pattern includes two examples:
-
Structural examples show the internal structure of patterns, including detailed comments.
-
RealWorld examples show how patterns can be used in real-world Python applications.
TODO: fill this up
Client means client of classes, defined as part of a pattern, which is merely a caller of the given methods or a user of the given classes. In other words, it's the part of your application's code that uses the pattern's classes.
Take a look at the structural example first. There you'll find detailed descriptions of each class in a pattern, its role, and connection to other classes.
I appreciate any help, whether it's a simple fix of a typo or a whole new example. Just make a fork, make your change and submit a pull request.
Here's a style guide which might help you to keep your changes consistent with the rest of the project's code:
TODO: fill this up
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
