This is a collection of small coding projects that demonstrate how to implement design patterns in Python. The examples in this repo are taken from the book "Mastering Design Patterns in Python". The main idea is to provide a quick reference to a pattern you understand how to best leverage when the time comes.
Because reading and doing is almost always better than just reading.
You likely don't, but if you so chose you could do the following:
Pre-Reqs
-
Activate a
venv
in the root directory: -
First Time:
-
python3 -m venv .venv
-
Every Time:
-
source .venv/bin/activate
Run Steps
cd <pattern>/<project>
cat <file>.py
- READ IT
python <file>.py
- EXAMINE OUTPUT