An Exploratory Study on the Relationship between Changes and Refactoring

Conference Paper (2017)
Author(s)

F. Palomba (TU Delft - Software Engineering)

Andy Zaidman (TU Delft - Software Engineering)

Rocco Oliveto (University of Molise)

Andrea De Lucia (University of Salerno)

Research Group
Software Engineering
Copyright
© 2017 F. Palomba, A.E. Zaidman, Rocco Oliveto, Andrea De Lucia
DOI related publication
https://doi.org/10.1109/ICPC.2017.38
More Info
expand_more
Publication Year
2017
Language
English
Copyright
© 2017 F. Palomba, A.E. Zaidman, Rocco Oliveto, Andrea De Lucia
Research Group
Software Engineering
Pages (from-to)
176-185
ISBN (electronic)
978-1-5386-0535-6
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Refactoring aims at improving the internal structure of a software system without changing its external behavior. Previous studies empirically assessed, on the one hand, the benefits of refactoring in terms of code quality and developers’
productivity, and on the other hand, the underlying reasons that push programmers to apply refactoring. Results achieved in the latter investigations indicate that besides personal motivation such as the responsibility concerned with code authorship, refactoring is mainly performed as a consequence of changes in the requirements rather than driven by software quality. However,
these findings have been derived by surveying developers, and therefore no software repository study has been carried out to corroborate the achieved findings. To bridge this gap, we provide a quantitative investigation on the relationship between different types of code changes (i.e., Fault Repairing Modification, Feature Introduction Modification, and General Maintenance Modification) and 28 different refactoring types coming from 3 open source projects. Results showed that developers tend to apply a higher number of refactoring operations aimed at improving maintainability and comprehensibility of the source code when fixing bugs. Instead, when new features are implemented, more complex refactoring operations are performed to improve code cohesion. Most of the times, the underlying reasons behind the application of such refactoring operations are represented by the presence of duplicate code or previously introduced self-admitted technical debts.

Files

PalombaICPC2017.pdf
(pdf | 2.01 Mb)
License info not available