Skip to content

Glossary: Software Design Patterns

Strategy

Also written: strategies

One interchangeable way of doing a job, where all versions have the same shape so the code using one doesn't care which it gets. In Python it is usually a function, like `percent_off(10)`.

Where the book teaches it

Related terms

CallableSimple factory