Today I came across a very interesting guide. More precisely, a site dedicated to refactoring. I advise you to read :) So, briefly what it is about: refactoring is a controlled process of improving your code, without writing new functionality. Refactoring challenge: reduce technical debt. Refactoring goal: clean code and simple design. Clean code = Simple code
- Clean code passes all tests.
- Clean code is obvious to other programmers.
- Clean code contains no duplication.
- Clean code contains a minimum of classes and other moving parts.
- Clean code is easier and cheaper to maintain.
- The refactoring process does not create new functionality.
- After the refactoring, all existing tests should pass successfully.
- After refactoring, the code should become cleaner.
GO TO FULL VERSION