During this code cast you can see how to add a feature on existing code.
The steps described in this video are:
1) Build a safety net with system tests
2) Add unit or component tests if necessary
3) Make room for new feature with refactoring
4) Add new feature to legacy code
5) Test manually
6) Refactor, clean-up if necessary
As a general practice: commit often, after each small change or refactoring. This way of working ensures that if we do any mistake, we can go back without trying to find a way to fix the system and lose precious time.
All these steps ensure taking a minimum risk when changing code that you do not know. This is a fast way of adding a feature to code we do not know, considering that we limit to the maximum the probability of introducing defects to the existing code.
To read about the technique please see http://blog.adrianbolboaca.ro/2014/11...
Programming Language: Java