Skip to main navigation Skip to search Skip to main content

Detecting bad smells with weight based distance metrics theory

  • School of Computer Science and Technology, Harbin Institute of Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

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.

Original languageEnglish
Title of host publicationProceedings of the 2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012
Pages299-304
Number of pages6
DOIs
StatePublished - 2012
Externally publishedYes
Event2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012 - Harbin, Heilongjiang, China
Duration: 8 Dec 201210 Dec 2012

Publication series

NameProceedings of the 2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012

Conference

Conference2012 2nd International Conference on Instrumentation and Measurement, Computer, Communication and Control, IMCCC 2012
Country/TerritoryChina
CityHarbin, Heilongjiang
Period8/12/1210/12/12

Keywords

  • Distance metrics theory
  • Feature envy bad smell
  • Refactoring oppotunity
  • Weight based distance metrics theory

Fingerprint

Dive into the research topics of 'Detecting bad smells with weight based distance metrics theory'. Together they form a unique fingerprint.

Cite this