• DocumentCode
    1606211
  • Title

    When and Why Your Code Starts to Smell Bad

  • Author

    Tufano, Michele ; Palomba, Fabio ; Bavota, Gabriele ; Oliveto, Rocco ; Di Penta, Massimiliano ; De Lucia, Andrea ; Poshyvanyk, Denys

  • Author_Institution
    Coll. of William & Mary, Williamsburg, VA, USA
  • Volume
    1
  • fYear
    2015
  • Firstpage
    403
  • Lastpage
    414
  • Abstract
    In past and recent years, the issues related to managing technical debt received significant attention by researchers from both industry and academia. There are several factors that contribute to technical debt. One of these is represented by code bad smells, i.e., Symptoms of poor design and implementation choices. While the repercussions of smells on code quality have been empirically assessed, there is still only anecdotal evidence on when and why bad smells are introduced. To fill this gap, we conducted a large empirical study over the change history of 200 open source projects from different software ecosystems and investigated when bad smells are introduced by developers, and the circumstances and reasons behind their introduction. Our study required the development of a strategy to identify smell-introducing commits, the mining of over 0.5M commits, and the manual analysis of 9,164 of them (i.e., Those identified as smell-introducing). Our findings mostly contradict common wisdom stating that smells are being introduced during evolutionary tasks. In the light of our results, we also call for the need to develop a new generation of recommendation systems aimed at properly planning smell refactoring activities.
  • Keywords
    recommender systems; software maintenance; software quality; code quality; recommendation systems; smell refactoring activities; smell-introducing commits identification; software ecosystems; technical debt management; Androids; Ecosystems; History; Humanoid robots; Maintenance engineering; Measurement; Software; bad code smells; empirical study; mining software repositories;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering (ICSE), 2015 IEEE/ACM 37th IEEE International Conference on
  • Conference_Location
    Florence
  • Type

    conf

  • DOI
    10.1109/ICSE.2015.59
  • Filename
    7194592