Sequential Ordering of Code Smells and Usage of Heuristic Algorithm
T. Pandiyavathi, T. Manochandar · Indian Journal of Science and Technology · 2015
The process of removing the bad smell results in introduction of new smells due to dependency between the codes in the program. This process increases human effort and time. Automated tools are used for detecting the bad smells in the program. This problem is called as ripple effect and we aim in reducing and removing this effect in the program. We apply refactoring process for reducing the amount of bad smells in the code. Since there exist more number of code smells in the program, we generate a sequence in which the refactoring has to be applied by which the evolution of new bad smells is enormously decreased. The refactoring methods that have to be applied to the source code are also ordered using a heuristic algorithm. Keywords: Code Smells, Heuristic Algorithm, Refactoring, Ripple Effect