skip to main content
10.1109/ICSTW.2011.69guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Prioritising Refactoring Using Code Bad Smells

Published: 21 March 2011 Publication History
  • Get Citation Alerts
  • Abstract

    We investigated the relationship between six of Fowler et al.'s Code Bad Smells (Duplicated Code, Data Clumps, Switch Statements, Speculative Generality, Message Chains, and Middle Man) and software faults. In this paper we discuss how our results can be used by software developers to prioritise refactoring. In particular we suggest that source code containing Duplicated Code is likely to be associated with more faults than source code containing the other five Code Bad Smells. As a consequence, Duplicated Code should be prioritised for refactoring. Source code containing Message Chains seems to be associated with a high number of faults in some situations. Consequently it is another Code Bad Smell which should be prioritised for refactoring. Source code containing only one of the Data Clumps, Switch Statements, Speculative Generality, or Middle Man Bad Smell is not likely to be fault-prone. As a result these Code Bad Smells could be put into a lower refactoring priority.

    Cited By

    View all

    Index Terms

    1. Prioritising Refactoring Using Code Bad Smells
      Index terms have been assigned to the content through auto-classification.

      Recommendations

      Comments

      Please enable JavaScript to view thecomments powered by Disqus.

      Information & Contributors

      Information

      Published In

      cover image Guide Proceedings
      ICSTW '11: Proceedings of the 2011 IEEE Fourth International Conference on Software Testing, Verification and Validation Workshops
      March 2011
      662 pages
      ISBN:9780769543451

      Publisher

      IEEE Computer Society

      United States

      Publication History

      Published: 21 March 2011

      Author Tags

      1. Code Bad Smells
      2. Fault
      3. Refactoring

      Qualifiers

      • Article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)0
      • Downloads (Last 6 weeks)0
      Reflects downloads up to 14 Aug 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2024)Severity Factor (SF)Journal of Software: Evolution and Process10.1002/smr.259036:5Online publication date: 25-Apr-2024
      • (2023)Code smell prioritization in object‐oriented software systemsJournal of Software: Evolution and Process10.1002/smr.253635:12Online publication date: 29-Jan-2023
      • (2018)Understanding metric-based detectable smells in Python softwareInformation and Software Technology10.5555/3163583.316367094:C(14-29)Online publication date: 1-Feb-2018
      • (2012)Investigating the impact of code smells debt on quality code evaluationProceedings of the Third International Workshop on Managing Technical Debt10.5555/2666036.2666039(15-22)Online publication date: 5-Jun-2012

      View Options

      View options

      Get Access

      Login options

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media