Work

コードクローンを対象としたリファクタリングの有効性に関する調査

Year: 2006
Type: article
Abstract: Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior. It is said that duplicated code is one of bad implementations to be refactored, but usefulness of the refactoring hasn't been reported yet. In this paper, we investigate cost and effectiveness of the refactoring to evaluate the usefulness. The target is an open source software system, 15 versions of whose source code are published. We refactored code clones in the first version. We used the time that we spent to modify the source code and perform regression tests as a cost metric, and the changes of CK metrics and the number of modifying the refactored parts from the second version to the final version as effective metrics. As a result, we found that the code clone refactorings didn't improve CK metrics values, but reduced the number of modifications. The cost of each refactoring was at most 20 minutes.
Authors: 肥後, 芳樹, 楠本, 真二, 井上, 克郎
Language: Japanese
Open Access status: green
OpenAlex ID: W6997888646
FWCI:
Cites:
Cited by:
Related to: 10