As discussed in the past videos, we are proposing a new method for refactoring legacy code:
- first, refactor through safe mechanics towards pure functions
- then, write automated tests for pure functions using data-driven and property-based tests
- finally, refactor the pure functions to classes (or something else).
This is part 1 of the codecast in which we apply this method to the C++ trivia codebase.
Alex Bolboaca is a programmer, CTO, author, trainer and coach at Mozaic Works.
Mozaic Works provides high quality, customized training, coaching, and advice for companies who want to improve their effectiveness in the market, mainly through the use of modern leadership and technical practices.
Check out our offer and ask us questions at https://mozaicworks.com
Think. Design. Work smart.