Code smell

/koʊd smɛl/ noun

Definition

A term describing code that technically works but has design problems that suggest deeper issues. Code smells indicate areas where code might be hard to maintain, understand, or extend.

Etymology

Coined by Kent Beck and popularized by Martin Fowler in 'Refactoring: Improving the Design of Existing Code' (1999). The metaphor of 'smell' suggests something that doesn't seem quite right - like food that might be spoiled - requiring investigation to determine if there's actually a problem.

Kelly Says

Code smells are like that weird noise your car makes - it still runs, but experienced mechanics know that grinding sound means trouble ahead! Common smells like 'God Object' (a class that does everything) or 'Spaghetti Code' (tangled logic) are early warning signs that save developers from future debugging nightmares.

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.