Refactor C++ legacy code through pure functions

February 24, 2020


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.

Visit the channel and subscribe

Categorised in:

Leave a Reply

Your email address will not be published. Required fields are marked *