arrow
Return

Recommending Refactoring Solutions Based on Traceability and Code Metrics

delete2018-01-01
delete21
delete
OA
AI
A
Ally S. Nyamawe
刘辉 cover
刘辉 (Hui Liu)
Z
Zhendong Niu *
W
Wentao Wang
N
Nan Niu
DOI:10.1109/ACCESS.2018.2868990delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Software refactoring has been extensively used to rectify the design flaws and improve software quality without affecting its observable behaviors. For a given code smell, it is common that there exist multiple refactoring solutions. However, it is challenging for developers to select the best one from such potential solutions. Consequently, a number of approaches have been proposed to facilitate the selection. Such approaches compare and select among alternative refactoring solutions based on their impact on metrics of source code. However, their impact on the traceability between source code and requirements is ignored although the importance of such traceability has been well recognized. To this end, we select among alternative refactoring solutions according to how they improve the traceability as well as source code design. To quantify the quality of traceability and source code design we leverage the use of entropy-based and traditional coupling and cohesion metrics respectively. We virtually apply alternative refactoring solutions and measure their effect on the traceability and source code design. The one leading to greatest improvement is recommended. The proposed approach has been evaluated on a well-known data set. The evaluation results suggest that on up to 71% of the cases, developers prefer our recommendation to the traditional recommendation based on code metrics.
Keywords:
Entropy
refactoring
requirements traceability
solution recommendation
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

U
University System of Ohio
Scholars:
15.5W
Papers: 13.0W
Citations: 200
B
beijing institute of technology
Scholars:
5.5W
Papers: 4.0W
Citations: 63
Cited Papers

Cited Papers

Rat lung transplantation model: modifications of the cuff technique
err2020-03-01
err0
errOAAI
errDong Tian; Haruhiko Shiiya; Masaaki Sato; Jun Nakajima
errShare
errSave
How changes affect software entropy: an empirical study
err2012-07-14
err49
PREAI
errCanfora, Gerardo; Cerulo, Luigi; Cimitile, Marta; Di Penta, Massimiliano
errShare
errSave
errShare
errSave
JMove: A novel heuristic and tool to detect move method refactoring opportunities
err2018-04-01
err47
PREAI
errTerra, Ricardo; Valente, Marco Tulio; Miranda, Sergio; Sales, Vitor
errShare
errSave
The Role of Multiple Large Shareholders in the Choice of Debt Source
err2016-11-04
err0
PREAI
errSabri Boubaker; Wael Rouatbi; Walid Saffar
errShare
errSave
researcher View more