DETECTION AND REFACTORING OF BAD SMELL CAUSED BY LARGE SCALE
- 1. School Of Computer Science and Technology, Harbin Institute of Technology, Harbin, China
Description
Bad smells are signs of potential problems in code. Detecting bad smells, however, remains time consuming for software engineers despite proposals on bad smell detection and refactoring tools. Large Class is a kind of bad smells caused by large scale, and the detection is hard to achieve automatically. In this paper, a Large Class bad smell detection approach based on class length distribution model and cohesion metrics is proposed. In programs, the lengths of classes are confirmed according to the certain distributions. The class length distribution model is generalized to detect programs after grouping. Meanwhile, cohesion metrics are analyzed for bad smell detection. The bad smell detection experiments of open source programs show that Large Class bad smell can be detected effectively and accurately with this approach, and refactoring scheme can be proposed for design quality improvements of programs.
Files
4513ijsea01.pdf
Files
(187.0 kB)
Name | Size | Download all |
---|---|---|
md5:eaf8187f72a4b2b0f1408da56489bbd0
|
187.0 kB | Preview Download |