Refactoring need to be done by every programmer and it leads to have a maintainable code base.Rajith Attapattu has highlighted very good points when doing refactoring
- The best approach for restructuring starts by taking stock of the existing
codebase and the tests written against that code. - Avoid the temptation to rewrite everything.
- Many incremental changes are better than one massive change.
- Many incremental changes are better than one massive change.
- New technology is an insufficient reason to refactor.
- New technology is an insufficient reason to refactor.
- Remember that humans make mistakes.
Other than above, good practices can be found in here.
Comments