Abstract

Code refactoring is a “Technique used for restructuring an existing source code, improving its internal structure without changing its external behaviour”. It is the process of changing a source code in such a way that it does not alter the external behaviour of the code yet improves its internal structure. It is a way to clean up code that minimizes the chances of introducing bugs. Refactoring is a change made to the internal structure of a software component to make it easier to understand and cheaper to modify, without changing the observable behaviour of that software component. Bad smells indicate that there is something wrong in the code that have to refactor. There are different tools that are available to identify and remove these bad smells. It is a technique that change our source code in a more readable and maintainable form by removing the bad smells from the code. Refactoring is used to improve the quality of software by reducing the complexity. In this paper bad smells are found and perform the refactoring based on these bad smell and then find the complexity of program and compare with initial complexity. This paper shows that when refactoring is performed the complexity of software decrease and easily understandable.

Highlights

  • Refactoring is a change made to the internal structure of a software component to make it easier to understand and cheaper to modify, without changing the observable behaviour of that software component [1]

  • Refactoring is the process of changing a software system in such a way that it does not alter the external behaviour of the code yet improves its internal structure

  • Code refactoring is a “disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behaviour”, undertaken in order to improve some of the non-functional attributes of the software

Read more

Summary

Refactoring

Refactoring is a change made to the internal structure of a software component to make it easier to understand and cheaper to modify, without changing the observable behaviour of that software component [1]. Code refactoring is a “disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behaviour”, undertaken in order to improve some of the non-functional attributes of the software. This is done by applying a series of “Refactoring”, each of which is a (usually) tiny change in a computer program’s source code that does not modify its conformance to functional requirements. Besides being obviously time-consuming this operation is error-prone because polymorphism may cause a forgotten update to compile correctly but change the software’s behaviour inadvertently This requires the maintainer to manually locate the changed functionality and update the omitted invocation. Given the large developer communities and companies backing the most popular programming languages, several refactoring tools are readily available

Bad smell
Refactoring Techniques
Refactoring Tool
Literature Survey
Problem Formulation
Research Methodology
Experiment
Extract Method
Findings
Conclusion
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call