Parameter-based refactoring and the relationship with fan-in/fan-out coupling

MARCHESI, MICHELE;TONELLI, ROBERTO;
2011-01-01

Abstract

Refactoring is an activity which, in theory, should have minimal impact on the overall structure of a system. That said, certain refactorings change the coupling profile of a system and over time those cumulative changes in coupling can have serious implications for system maintenance effort. In this paper, we analyse effect of the fan-in and fan-out metrics from the perspective of two refactorings - namely 'Add Parameter' to, and 'Remove Parameter' from, a method. We developed a bespoke pattern-matching tool to collect these two refactorings from multiple releases of the Tomcat open-source system using the Evolizer tool to extract method signature data and the JHawk metrics tool to collect the two coupling metrics. Results point to significant differences in the profiles of fan-in and fan-out between refactored and non-refactored classes. We describe how software company can take advantage from this knowledge by defining a priority list of classes which could require a refactoring. A strong over-arching theme emerged: developers seemed to focus on the refactoring of classes with relatively high fan-in and fan-out rather than classes with high values in any one. The study is the first that we know of to analyse the direct effect of a subset of Fowler's refactorings on fan-in and fan-out - relevant metrics of the overall structure of a system.
2011
Proceedings - 4th IEEE International Conference on Software Testing, Verification, and Validation Workshops, ICSTW 2011
978-076954345-1
IEEE
430
436
7
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5954443
4th IEEE International Conference on Software Testing, Verification, and Validation Workshops, ICSTW 2011
contributo
Esperti anonimi
21-25 March 2011
Berlin, Germany
internazionale
4 Contributo in Atti di Convegno (Proceeding)::4.1 Contributo in Atti di convegno
Murgia, A; Marchesi, Michele; Concas, G; Tonelli, Roberto; Counsell, S.
273
5
4.1 Contributo in Atti di convegno
none
info:eu-repo/semantics/conferenceObject
Files in This Item:
There are no files associated with this item.

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.

Questionnaire and social

Share on:
Impostazioni cookie