Code smell
code smellssmellssymptomsundesirable
In computer programming, a code smell is any characteristic in the source code of a program that possibly indicates a deeper problem.wikipedia
51 Related Articles
Code refactoring
refactoringrefactoredrefactor
Often the deeper problem hinted at by a code smell can be uncovered when the code is subjected to a short feedback cycle, where it is refactored in small, controlled steps, and the resulting design is examined to see if there are any further code smells that in turn indicate the need for more refactoring.
Refactoring is usually motivated by noticing a code smell.
Duplicate code
code duplicationduplicated codeDuplication
Duplicate code is generally considered undesirable for a number of reasons.

Technical debt
design debttoggle debtworkaround
Bad code smells can be an indicator of factors that contribute to technical debt.
Data clump
A data clump, like other code smells, can indicate deeper problems with the program design or implementation.
Design smell
The origin of the term "design smell" can be traced to the term "code smell" which was featured in the book Refactoring: Improving the Design of Existing Code by Martin Fowler.
Anti-pattern
antipatternanti-patternspitfalls
Software rot
active software rotBit rotBitrot
Computer programming
programmingcodingprogrammable
In computer programming, a code smell is any characteristic in the source code of a program that possibly indicates a deeper problem.





Source code
codesourcesource file
In computer programming, a code smell is any characteristic in the source code of a program that possibly indicates a deeper problem.
Computer program
programprogramscomputer programs
In computer programming, a code smell is any characteristic in the source code of a program that possibly indicates a deeper problem.







Kent Beck
The term was popularised by Kent Beck on WardsWiki in the late 1990s.


WikiWikiWeb
C2.comCunningham & CunninghamWardsWiki
The term was popularised by Kent Beck on WardsWiki in the late 1990s.



Martin Fowler (software engineer)
Martin FowlerFowler, Martin
Usage of the term increased after it was featured in the book Refactoring: Improving the Design of Existing Code by Martin Fowler.

Agile software development
Agileagile developmentAgile Manifesto
It is also a term used by agile programmers.



Software bug
bugsbugsoftware bugs
Code smells are usually not bugs; they are not technically incorrect and do not prevent the program from functioning.


Robert C. Martin
Robert Cecil MartinRobert C. Martin (Uncle Bob)Robert Martin
Robert C. Martin calls a list of code smells a "value system" for software craftsmanship.

Feedback
feedback loopfeedback loopsfeedback control
Often the deeper problem hinted at by a code smell can be uncovered when the code is subjected to a short feedback cycle, where it is refactored in small, controlled steps, and the resulting design is examined to see if there are any further code smells that in turn indicate the need for more refactoring.






Heuristic (computer science)
heuristicheuristicsheuristic algorithm
From the point of view of a programmer charged with performing refactoring, code smells are heuristics to indicate when to refactor, and what specific refactoring techniques to use.
Commit (version control)
commitscommitCommit (revision control)
A 2015 study utilizing automated analysis for half a million source code commits and the manual examination of 9,164 commits determined to exhibit "code smells" found that:
PMD (software)
PMDCopy/Paste DetectorCopy/Paste Detector (CPD)
Java (programming language)
JavaJava programming languageJava language




Software design pattern
design patterndesign patternspattern