Masterclass: Rewrite Vs Refactor with Anand Bagmar

Our next #DojoMasterclass is with Anand Bagmar, focusing on Rewrite Vs Refactoring.

This Masterclass is kindly sponsored by Practitest. PractiTest is an all-in-one test management solution where you and your team can manage, control, track, document and optimize your QA efforts in real-time. Release better software with confidence.


More information about Anand and the full masterclass description is available below, and please click 'Register' to reserve your free space.


Anand Bagmar

Anand Bagmar

Software Quality Evangelist


Very often we work on a code-base that has been written by others, and some time ago. This code-base could be for the product code or Test Automation code.

As the product life increases, the evolution of the code-base is a natural process. However, there are various catalysts to speed up this evolution process:

  • More features/tests to be added, including increased complexity
  • People writing the code evolve - their learning, skillset
  • Delivery pressure means it is quite possible that correct decisions for implementation may not be taken. In other words, it is possible that short-cuts were taken in the implementation leading to spaghetti code/architecture
  • People move on to different roles, new people join the team with different opinions, perspectives and experiences.

We're sure there are more reasons you can think of.

In this session, Anand will share various examples and experiences of being in such situations. Anand will highlight the factors he considered when deciding if he should refactor or rewrite the code-under-consideration.


  • Tips to identify if there indeed is a problem with the existing code
  • Differences in rewrite Vs refactor
  • Factors to consider if you should rewrite or refactor
Anand Bagmar
Anand is a Software Quality Evangelist with 20+ years in the software testing field. He is passionate about shipping a quality product, and specialises in Product Quality strategy & execution, and also building automated testing tools, infrastructure and frameworks. Anand writes testing related blogs and has built open-source tools related to Software Testing – WAAT (Web Analytics Automation Testing Framework), TaaS (for automating the integration testing in disparate systems) and TTA (Test Trend Analyzer). Connect with him on LinkedIn at