REFACTORING PREDICTION USING CLASS COMPLEXITY METRICS

Yasemin Köşker, Burak Turhan, Ayşe Bener

2008

Abstract

In the lifetime of a software product, development costs are only the tip of the iceberg. Nearly 90% of the cost is maintenance due to error correction, adoptation and mainly enhancements. As Belady and Lehman (Lehman and Belady, 1985) state that software will become increasingly unstructured as it is changed. One way to overcome this problem is refactoring. Refactoring is an approach which reduces the software complexity by incrementally improving internal software quality. Our motivation in this research is to detect the classes that need to be rafactored by analyzing the code complexity. We propose a machine learning based model to predict classes to be refactored. We use Weighted Naïve Bayes with InfoGain heuristic as the learner and we conducted experiments with metric data that we collected from the largest GSM operator in Turkey. Our results showed that we can predict 82% of the classes that need refactoring with 13% of manual inspection effort on the average.

Download


Paper Citation


in Harvard Style

Köşker Y., Turhan B. and Bener A. (2008). REFACTORING PREDICTION USING CLASS COMPLEXITY METRICS . In Proceedings of the Third International Conference on Software and Data Technologies - Volume 2: ICSOFT, ISBN 978-989-8111-52-4, pages 289-292. DOI: 10.5220/0001893802890292

in Bibtex Style

@conference{icsoft08,
author={Yasemin Köşker and Burak Turhan and Ayşe Bener},
title={REFACTORING PREDICTION USING CLASS COMPLEXITY METRICS},
booktitle={Proceedings of the Third International Conference on Software and Data Technologies - Volume 2: ICSOFT,},
year={2008},
pages={289-292},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0001893802890292},
isbn={978-989-8111-52-4},
}


in EndNote Style

TY - CONF
JO - Proceedings of the Third International Conference on Software and Data Technologies - Volume 2: ICSOFT,
TI - REFACTORING PREDICTION USING CLASS COMPLEXITY METRICS
SN - 978-989-8111-52-4
AU - Köşker Y.
AU - Turhan B.
AU - Bener A.
PY - 2008
SP - 289
EP - 292
DO - 10.5220/0001893802890292