Design Patterns in Python
Factory, Strategy, Observer, Adapter, Decorator, Singleton — many become simpler with first-class functions.
Intermediate
A Strategy is often just a function passed as an argument.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.