There is a newer version of the record available.

Published March 21, 2022 | Version v1

Composite Refactoring: Representations, Characteristics and Effect on Software Projects

  • 1. Pontifical Catholic University of Rio de Janeiro (PUC-Rio)
  • 2. Federal University of Ceará (UFC), Itapajé
  • 3. Pontifical Catholic University of Rio de Janeiro (PUC-Rio) Johannes Kepler University Linz (JKU)
  • 4. State University of Maringa (UEM)
  • 5. Federal University of Paraná (UFPR)

Description

Code refactoring is a code transformation that aims to improve software quality.  A composite refactoring (or, simply, composites) is defined by two or more interrelated refactorings. Recent studies found out that developers often apply composite refactorings. Each composite is applied in software projects and needs to be somehow represented and have its own characteristics (e.g. its code scope) as well as its effects on software quality. 
However, these basic elements of composites are rarely studied in a systematic manner.  The lack of systematic knowledge also misguides the design of automated support tools for composites, including tools for detecting and recommending composites in software projects. Also, empirical evidence about the effect of composites is still limited and conflicting. Researchers have either partial or controversion views about 
basic elements of composite refactorings. Studies suggest composites remove code smells, and other studies mention composites introduce code smells, this is an example of a literature conflict. There is not a mapping study on composite refactorings, an aggregation of knowledge about composite refactorings, including its possible representations, characteristics, and possible effects. We then conducted a systematic mapping with 124 primary empirical studies about refactoring. Our systematic mapping summarizes the current knowledge on composites and also presents a conceptual framework of composites.  A conceptual framework is a design artifact to characterize a phenomenon. Our conceptual framework presents seven representation models, nine characteristics, and thirteen effects of composites. We found out that studies used multidimensional representations, like graphs, to generate ``paths'' of refactorings and know what refactoring(s) may be suggested. On composite characteristics, studies mentioned developers often finish a composite in a month. Studies do not investigate why composites are applied in several weeks, like a month. We then discussed existing gaps about composites. Studies suggested composites can affect internal and external software quality. However, studies investigated in-depth the composite effect on internal software quality, e.g, code smells. The composite effect on external software quality is little explored, mainly about the correctness attribute. 

Files

Dataset_SystematicMapping_IST2022.zip

Files (258.9 MB)

Name Size
md5:15941068c17354605044790b1109053d
258.9 MB Preview Download