Title :
Reducing Subjectivity in Code Smells Detection: Experimenting with the Long Method
Author :
Bryton, Sérgio ; Abreu, Fernando Brito e ; Monteiro, Miguel
Author_Institution :
QUASAR, Univ. Nova de Lisboa, Caparica, Portugal
fDate :
Sept. 29 2010-Oct. 2 2010
Abstract :
Guidelines for refactoring are meant to improve software systems internal quality and are widely acknowledged as among software´s best practices. However, such guidelines remain mostly qualitative in nature. As a result, judgments on how to conduct refactoring processes remain mostly subjective and therefore non-automatable, prone to errors and unrepeatable. The detection of the Long Method code smell is an example. To address this problem, this paper proposes a technique to detect Long Method objectively and automatically, using a Binary Logistic Regression model calibrated by expert´s knowledge. The results of an experiment illustrating the use of this technique are reported.
Keywords :
expert systems; regression analysis; software maintenance; software reusability; systems software; binary logistic regression model; code smells detection; expert knowledge; long method code smell; refactoring processes; software systems; Complexity theory; Correlation; Logistics; Mathematical model; Measurement; Predictive models; Training; Binary Logistic Regression; Code Smells; Long Method; Refactoring Process;
Conference_Titel :
Quality of Information and Communications Technology (QUATIC), 2010 Seventh International Conference on the
Conference_Location :
Porto
Print_ISBN :
978-1-4244-8539-0
Electronic_ISBN :
978-0-7695-4241-6
DOI :
10.1109/QUATIC.2010.60