Title :
Detecting Bad Smells with Weight Based Distance Metrics Theory
Author :
Jiang Dexun ; Ma Peijun ; Su Xiaohong ; Wang Tiantian
Author_Institution :
Sch. Of Comput. Sci. & Technol., Harbin Inst. of Technol., Harbin, China
Abstract :
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.
Keywords :
computational complexity; public domain software; software maintenance; software metrics; JFreeChart open source code; Jaccard distance; automatic approach; bad smell detection; feature envy bad smell; low time complexity; manual detection; program design; refactoring oppotunity; weight based distance metrics theory; Couplings; Feature extraction; Inspection; Manuals; Measurement; Software; Visualization; distance metrics theory; feature envy bad smell; refactoring opportunity; weight based distance metrics theory;
Conference_Titel :
Instrumentation, Measurement, Computer, Communication and Control (IMCCC), 2012 Second International Conference on
Conference_Location :
Harbin
Print_ISBN :
978-1-4673-5034-1
DOI :
10.1109/IMCCC.2012.74