top of page

From 0% to Cleanly Refactored Code 100% Tested Code

Anton Pirker

A few years ago at Craft Conference in Budapest, I attended a talk by Llewellyn Falco called "From 0% to Cleanly Refactored Code 100% Tested Code".


In his talk, Falco shows how he refactors a small piece of really ugly legacy code. He adds 100% code coverage, cleans up the code, and in the end adds a new requirement.


He shows a handful of practices that allow him to change the code in tiny steps with the confidence that he will not change the behavior of the code. And all this while not needing to think a lot. It is just mesmerizing at what pace he is changing the code without thinking.


I have never seen a person with such a good setup. He can run and add tests during coding very quickly and also has a great habit of tiny commits with standardized commit messages.


I especially liked his comments in the Q&A section at the end when he was talking about how programmers do not practice their skills, but just perform most of the time.


Performing does not improve your skills, practice does.

This resonated with me. I do tend to perform my skills all the time but neglect to practice them. So I should spend more time practicing my skills.


Here is his excellent talk in full:



Recent Posts

See All

How to Refactor and Not Break Things

I am one of the maintainers of the Sentry Python SDK. In the SDK, we completed a huge refactoring, and I want to write down how we pulled...

bottom of page