← Sessions

Cutting Code Quickly: From 0% to Cleanly Refactored 100% Tested Code

In this guided demo, we are going to look at 3 different techniques that are remarkably powerful in combination to cut through legacy code without having to go through the bother of reading or understanding it.

The techniques are:

Combination Testing: to get 100% test coverage quickly

Code Coverage as guidance: to help us make decisions about inputs and deletion

Provable Refactorings: to help us change code without having to worry about it.

In combination, these 3 techniques can quickly make impossible tasks trivial.

Will will be doing this on the Gilded Rose Kata, https://github.com/emilybache/GildedRose-Refactoring-Kata

It is extra beneficial if you try it out yourself first so you can see how your implementation would differ.

Llewellyn Falco
Creator, ApprovalTests