kirancodes.me
To Proof Maintenance & Beyond!

A field study of refactoring challenges and benefits

Miryung Kim, Thomas Zimmermann, Nachiappan Nagappan

Abstract

It is widely believed that refactoring improves software quality and developer productivity. However, few empirical studies quantitatively assess refactoring benefits or investigate developers' perception towards these benefits. This paper presents a field study of refactoring benefits and challenges at Microsoft through three complementary study methods: a survey, semi-structured interviews with professional software engineers, and quantitative analysis of version history data. Our survey finds that the refactoring definition in practice is not confined to a rigorous definition of semantics-preserving code transformations and that developers perceive that refactoring involves substantial cost and risks. We also report on interviews with a designated refactoring team that has led a multi-year, centralized effort on refactoring Windows. The quantitative analysis of Windows 7 version history finds that the binary modules refactored by this team experienced significant reduction in the number of inter-module dependencies and post-release defects, indicating a visible benefit of refactoring.

BibTeX
@inproceedings{Kim-al:FSE12,
  author    = {Miryung Kim and
               Thomas Zimmermann and
               Nachiappan Nagappan},
  title     = {A field study of refactoring challenges and benefits},
  booktitle = {FSE},
  pages     = {50},
  publisher = {{ACM}},
  year      = {2012},
}

Related papers