# Strategy: When the Rule Needs a Class of Its Own

Pass 1 handed the weekly deal in as one function; a carrier's rate needs its own numbers and answers more than one question, so the function grows into a class per carrier, each holding its numbers and keeping one promise, and the quote screen asks whichever carrier it's handed: the Strategy pattern in its classic form.

![Cheat sheet: Strategy: When the Rule Needs a Class of Its Own](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a6dd9986c5d74d34812c7eb761b79ae3.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Code Smell, Interface, OOP, Strategy Pattern
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-strategy-cheat-sheet
