TY - GEN
T1 - Detecting bad smells with weight based distance metrics theory
AU - Jiang, Dexun
AU - Ma, Peijun
AU - Su, Xiaohong
AU - Wang, Tiantian
PY - 2012
Y1 - 2012
N2 - Detecting bad smells in program design and implementation is a challenging task. Manual detection is proved to be time-consuming and inaccurate under complex situation. Weight based distance metrics and relevant conceptions are introduced in this paper, and the automatic approach for bad smells detection is proposed based on Jaccard distance. The conception of distance between entities and classes is defined and relevant computing formulas are applied in detecting. New weight based distance metrics theory is proposed to detect feature envy bad smell. This improved approach can express more detailed design quality and invoking relationship than the original distance metrics theory. With these improvements the automation of bad smells detection can be achieved with high accuracy. And then the approach is applied to detect bad smells in JFreeChart open source code. The experimental results show that the weight based distance metrics theory can detect the bad smell more accurately with low time complexity.
AB - Detecting bad smells in program design and implementation is a challenging task. Manual detection is proved to be time-consuming and inaccurate under complex situation. Weight based distance metrics and relevant conceptions are introduced in this paper, and the automatic approach for bad smells detection is proposed based on Jaccard distance. The conception of distance between entities and classes is defined and relevant computing formulas are applied in detecting. New weight based distance metrics theory is proposed to detect feature envy bad smell. This improved approach can express more detailed design quality and invoking relationship than the original distance metrics theory. With these improvements the automation of bad smells detection can be achieved with high accuracy. And then the approach is applied to detect bad smells in JFreeChart open source code. The experimental results show that the weight based distance metrics theory can detect the bad smell more accurately with low time complexity.
KW - Distance metrics theory
KW - Feature envy bad smell
KW - Refactoring oppotunity
KW - Weight based distance metrics theory
UR - https://www.scopus.com/pages/publications/84874440611
U2 - 10.1109/IMCCC.2012.74
DO - 10.1109/IMCCC.2012.74
M3 - 会议稿件
AN - SCOPUS:84874440611
SN - 9780769549354
T3 - Proceedings of the 2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012
SP - 299
EP - 304
BT - Proceedings of the 2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012
T2 - 2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012
Y2 - 8 December 2012 through 10 December 2012
ER -