# Code Smell

*noun*

say it: **“KOHD smel”** **/koʊd smɛl/**

Something in code that hints at a deeper design problem, even though the code still works.

## What is a **code smell**?

A **code smell** is a symptom in code, such as the same `if` chain copied into three places, that hints at a deeper problem underneath. It isn't a bug by itself: the code may work today. Read it like a doctor: the symptom you see, the cause underneath, and the cure.

## In a sentence

- “The same if chain in three files was the **code smell** that told us the products needed one home.”

Level: Apprentice · [More Software Development terms at this level](https://www.ask-codey.com/glossary?category=software-development&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/code-smell
