January 14, 2014

Refactoring

Refactoring

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.

Refactor:

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:
  1. Make the code easier to understand and modify
  2. Refactoring make little or no changes to the overall functionality of the component (observable behavior)
  3. 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