filmov
tv
Code Cast: Legacy Coderetreat Episode 5 - Basic Rules of Refactoring [Java]

Показать описание
During this code cast you can see how to use the Basic Rules of Refactoring in order to make sure you minimize the mistakes when extracting a method.
The steps described in this video are:
1) Cover with system tests
2) Duplicate implementation
3) Cover duplicated implementation with tests
4) Reroute original code
5) Remove old implementation
6) Test whole system
7) Test manually
All these steps ensure taking a minimum risk when changing code that you do not know. This is a fast way of refactoring because we are sure we minimize the probability of introducing defects when extracting methods. We have a basic safety net (system tests), then we write more focused tests on a code that is not yet used in production and only after that we change the production code to reroute to the extracted method.
Programming Language: Java
The steps described in this video are:
1) Cover with system tests
2) Duplicate implementation
3) Cover duplicated implementation with tests
4) Reroute original code
5) Remove old implementation
6) Test whole system
7) Test manually
All these steps ensure taking a minimum risk when changing code that you do not know. This is a fast way of refactoring because we are sure we minimize the probability of introducing defects when extracting methods. We have a basic safety net (system tests), then we write more focused tests on a code that is not yet used in production and only after that we change the production code to reroute to the extracted method.
Programming Language: Java
Code Cast: Legacy Coderetreat Episode 3 - Fix a Bug [Java]
Code Cast: Legacy Coderetreat Episode 1 - From Nothing to System Tests [Java]
Code Cast: Legacy Coderetreat Episode 2 - Golden Master [Java]
Code Cast: Legacy Coderetreat Episode 4 - Add a Feature [Java]
Code Cast: Legacy Coderetreat Episode 8 - Use Mocking Framework [Java]
Code Cast: Legacy Coderetreat Episode 6 - Dependency Inversion [Java]
Code Cast: Legacy Coderetreat Episode 7 - Extract and Override [Java]
Code Cast: Legacy Coderetreat Episode 9 - Extract Pure Functions [Java]
Code Cast: Legacy Coderetreat Episode 13 - Document Possible Defects With Tests [Java]
Code Cast: Legacy Coderetreat Episode 11 - Extract Class [Java]
Code Cast: Legacy Coderetreat Episode 5 - Basic Rules of Refactoring [Java]
Code Cast: Legacy Coderetreat Episode 12 - Unit Testing on Legacy Code [Java]
Code Cast: Legacy Coderetreat Episode 10 - Refactoring Rule of Three [Java]
Shaky to solid a test based approach to legacy code by Catherine Proulx
How to facilitate a coderetreat
#RemotePairProgramming Ep 007: Adi & Tom - Tackling Legacy Code
4Developers 2015: Legacy code - szkoła przetrwania (K. Żmuda)
Surviving Legacy Code with JB Rainsberger
Testing Legacy Code Elliotte by Rusty Harold
Global Day of Coderetreat 2018
HW5 - Legacy code
#RemotePairProgramming Ep 008: Adi & Tom - Improving Legacy Code
Does TDD work with legacy code?
Global Day of Coderetreat 2018
Комментарии