Skip to content
UPEEC

Design Patterns in Python

Factory, Strategy, Observer, Adapter, Decorator, Singleton — many become simpler with first-class functions.

Intermediate
Comments 0

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.