If you have been following this site, you will know that we are currently developing a video course on building robust python applications using pytest to do test driven development.

We recently completed a small video demonstrating how to clean up an ugly set of if-else conditionals by refactoring it to use polymorphism instead. All the while we use pytest as a safety net to catch errors.

In this seven minute video you will see

  • What to do when you have the same if-else checks all over the code, but you can't take it into a separate function because the logic inside the conditionals are different.
  • How to identify when you make a mistake during the clean up and fix it within seconds
  • How to make a design change step by step
  • The parallel change technique being applied

The full course will have approximately 10 hours of video content. If you would like to see more such videos as we develop the content, click here to subscribe to the site. Subscribing is free.

Enjoy the video!

Did you like this article?

If you liked this article, consider subscribing to this site. Subscribing is free.

Why subscribe? Here are three reasons:

  1. You will get every new article as an email in your inbox, so you never miss an article
  2. You will be able to comment on all the posts, ask questions, etc
  3. Once in a while, I will be posting conference talk slides, longer form articles (such as this one), and other content as subscriber-only

Tagged in: