SOLID & OOP Principles (50 Qs)•Part 2: Object-Oriented Design, Code Smells & Refactoring (11 - 24)
How do you refactor Legacy Code toward SOLID using Automated Characterization Tests?
mid Levelsolid-principlesObject-Oriented Design
In Simple Words: Before refactoring legacy code with zero tests, write Characterization Tests that capture the current actual behavior of the system (bugs and all) to provide a safety net.