Share on Facebook Tweet on Twitter Share on LinkedIn Share by email
An Empirical Study of Refactoring Challenges and Benefits at Microsoft

Miryung Kim, Thomas Zimmermann, and 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 the top 5% of preferentially refactored modules experience higher reduction in the number of inter-module dependencies and several complexity measures but increase size more than the bottom 95%. This indicates that measuring the impact of refactoring requires multidimensional assessment.

Details

Publication typeArticle
Published inIEEE Transactions on Software Engineering
Volume40
Number7
PublisherIEEE – Institute of Electrical and Electronics Engineers

Previous versions

Miryung Kim, Thomas Zimmermann, and Nachiappan Nagappan. A Field Study of Refactoring Challenges and Benefits, Association for Computing Machinery, Inc., November 2012.

> Publications > An Empirical Study of Refactoring Challenges and Benefits at Microsoft