Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Code smell
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Computer programming characteristic}} In [[computer programming]], a '''code smell''' is any characteristic in the [[source code]] of a [[Computer program|program]] that possibly indicates a deeper problem.<ref name="Tufano2015">{{Cite book |chapter-url = http://www.cs.wm.edu/~denys/pubs/ICSE'15-BadSmells-CRC.pdf |doi = 10.1109/ICSE.2015.59 |isbn = 978-1-4799-1934-5|citeseerx = 10.1.1.709.6783|chapter = When and Why Your Code Starts to Smell Bad |title = 2015 IEEE/ACM 37th IEEE International Conference on Software Engineering |pages = 403β414 |year = 2015 |last1 = Tufano |first1 = Michele |last2 = Palomba |first2 = Fabio |last3 = Bavota |first3 = Gabriele |last4 = Oliveto |first4 = Rocco |last5 = Di Penta |first5 = Massimiliano |last6 = De Lucia |first6 = Andrea |last7 = Poshyvanyk |first7 = Denys |s2cid = 59100195 }}</ref><ref>{{cite web|last1=Fowler|first1=Martin|title=CodeSmell|url=http://martinfowler.com/bliki/CodeSmell.html|website=martinfowler.com/|access-date=19 November 2014}}</ref> Determining what is and is not a code smell is subjective, and varies by [[Programming language|language]], developer, and development methodology. The term was popularized by [[Kent Beck]] on [[WardsWiki]] in the late 1990s.<ref name="Cunningham">{{cite web |last1=Beck |first1=Kent |title=Code Smells |url=https://wiki.c2.com/?CodeSmell |website=WikiWikiWeb |publisher=Ward Cunningham |access-date=8 April 2020}}</ref> Usage of the term increased after it was featured in the 1999 book ''Refactoring: Improving the Design of Existing Code'' by [[Martin Fowler (software engineer)|Martin Fowler]].<ref>{{cite book | first = Martin | last = Fowler | author-link = Martin Fowler (software engineer) | year = 1999 | title = Refactoring. Improving the Design of Existing Code | publisher = Addison-Wesley | isbn = 978-0-201-48567-7 | url-access = registration | url = https://archive.org/details/isbn_9780201485677 }} </ref> It is also a term used by [[Agile software development|agile]] programmers.<ref name="In Praise Of Small Code">{{Cite web |url= http://www.informationweek.com/architecture/in-praise-of-small-code/d/d-id/1098422 |title= In Praise Of Small Code |first= Andrew | last = Binstock |publisher= Information Week |date= 2011-06-27 |access-date= 2011-06-27}} </ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)