Refactoring is the process of changing the internal implementation details of a piece of code without changing what it does. Specifically, any external interfaces remain unchanged.
In object oriented code, this typically means that method signatures remain unchanged.
This may be helpful for many reasons:
- it makes it easier to maintain.
- it is less likely to contain bugs.
- simple code runs faster.
- It is easier to extend later on.
See Also Edit
External Links Edit
Wikipedia's article about refactoring
Martin Fowler's book