Open Access
Subscription Access
Bad Smell Detection and Refactoring to Improve Code Quality
The term refactoring is a crucial part of software engineering that changes the internal structure of source code with less cost of software maintenance to improve overall design of software. Design or code problem in software indicates the bad smell. Basically, bad smell is a sign of badly written code by programmer that makes the code more difficult to change and maintain in future. Bad smells prioritizing the code refactoring to improve software readability, modularity and reusability. In this paper, before applying refactoring techniques, bad smells are detected using some object-oriented metrics such as source lines of code, cyclomatic complexity, Average lines of code and number of parameters. Metrics are used to evaluate the various aspects of complexity of software code. The graphical user interface (GUI) window based applications are developed to detect bad smells in c# code using visual studio ultimate tool 2012. From simulation of refactoring techniques, it has been observed that extract method refactoring technique is easier and best way to remove long method bad smell for reducing complexity and duplicate code.
Keywords
Software Refactoring, Bad Smell, Object-Oriented Metrics, Refactoring Techniques.
User
Font Size
Information
Abstract Views: 266
PDF Views: 3