Definition: I will go with the dictionary definition
Refactoring (noun): A change made to the
internal structure of software to make it easier to understand and cheaper to
modify without changing its observable behavior.
So, what is refactoring?
Does it mean just cleaning of code, the answer is just, but I
feel it’s more than just cleaning code. Refactoring provides a technique for cleaning
code in a more controlled manner and efficiently.
Developer productivity will increase the more they learn
about refactoring methods, the more they use them the more they can reduce bugs
in their code.
Purpose of refactoring:
- Make the code easier to understand and modify
- Refactoring make little or no changes to the overall functionality of the component (observable behavior)
- Like Performance tuning – helps in improving the speed of the application, without altering the actual functionality, similarly refactoring help in cleaning small amount of internal code without changing the actual functionality.
In next post i will start with other refactoring methods
Thanks,
Hussain Patel
No comments:
Post a Comment