code smell

Suspicious software pattern

A code smell is a pattern in software that suggests something may be wrong with the underlying design—not a bug, but a hint that the code could be cleaner or more maintainable.

Common examples include duplicated logic, overly long functions, or classes that do too much.

Like a physical smell, it signals you should investigate: That deeply nested loop is a code smell.

detection

antipattern

Counterproductive common practice

middle man

quality

maintainability

Ease of ongoing repair

cohesion · modularity · technical debt · legacy code · bit rot · reusability · extensibility · scalability · testability · clean code

remediation

refactoring

Code improvement, same behavior

Categories
Opposites
code quality indicators

code smellclean code

Well-organized, maintainable programming

best practice · design pattern · craftsmanship

software defect severity

code smellsyntax error

Invalid code structure

bug · runtime error · crash · exception · type error

Family

smell test

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Negative · Rated G