2010 Seventh International Conference on the Quality of Information and Communications Technology (2010)
Sept. 29, 2010 to Oct. 2, 2010
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.
Refactoring Process, Code Smells, Long Method, Binary Logistic Regression
F. Brito e Abreu, M. Monteiro and S. Bryton, "Reducing Subjectivity in Code Smells Detection: Experimenting with the Long Method," 2010 Seventh International Conference on the Quality of Information and Communications Technology(QUATIC), Porto, Portugal, 2010, pp. 337-342.