Refactor C++ legacy code through pure functions

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

Think. Design. Work smart.

Visit the channel and subscribe

More from the Blog

Leave a Comment

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

    Your Cart
    Your cart is empty
      Apply Coupon
      Available Coupons
      individualcspo102022 Get 87.00 off
      Unavailable Coupons
      aniscppeurope2022 Get 20.00 off
      Scroll to Top