# Code Smells: Symptom, Cause, Cure

Working code can still be hard to change, and it usually shows it: a code smell is a symptom you can see, like a cough, that points to a problem underneath; this lesson reads three smells in a food truck's ordering code as a doctor would, symptom, cause and cure, and shows why not every cure is a pattern.

![Cheat sheet: Code Smells: Symptom, Cause, Cure](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/8f294c97cf694d44be10683cbbe10661.webp)

- Category: Data Structures
- Level: Apprentice
- Tags: Code Smell, Duplicated Code, Extract Method, Large Class, OOP, Refactoring, Repeated Switch, software-development
- Author: Gregor Dzierzon
- Updated: November 17, 2026

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