• DocumentCode
    592935
  • 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
  • fYear
    2012
  • fDate
    8-10 Dec. 2012
  • Firstpage
    299
  • Lastpage
    304
  • 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;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Instrumentation, Measurement, Computer, Communication and Control (IMCCC), 2012 Second International Conference on
  • Conference_Location
    Harbin
  • Print_ISBN
    978-1-4673-5034-1
  • Type

    conf

  • DOI
    10.1109/IMCCC.2012.74
  • Filename
    6428907