Brought to you by Linode - Build your next big idea @

Beautiful Pythonic Refactorings

Episode #275, published Sat, Aug 1, 2020, recorded Thu, Jul 9, 2020.

This episode is carbon neutral.
Do you obsess about writing your code just the right way before you get started? Maybe you have some ugly code on your hands and you need to make it better. Either way, refactoring could be your ticket to happier days! On this episode, we'll talk through a powerful example of iteratively refactoring some code until we eventually turn our ugly duckling into a Pythonic beauty.

Conor Hoekstra is our guest on this episode to talk us through refactoring some web scraping code.

Links from the show

The PyCon talk:
Presentation source code:
Conor on Twitter: @code_report
Youtube channel:
Perf example exceptions vs. test:
PyCon Online:
RAPIDS AI project:
Slides from presentation (with 9 refactoring steps):
Talk Python episode on Sourcery:

pip for venv only environment variable

Conor Hoekstra
Conor Hoekstra
Conor is a Senior Library Software Engineer at NVIDIA working on the RAPIDS team. He has six years of professional C++ experience (and is on the ISO C++ Canadian National Body) and one year of professional Python experience. He is extremely passionate about programming languages, algorithms and beautiful code. He is the founder and organizer of the Programming Languages Virtual Meetup and he has a YouTube channel where he covers solutions to competitive programming problems.
Episode sponsored by
Ads served ethically
Click to show comments

Individuals can support this podcast directly via Patreon. Corporate sponsorship opportunities available here.
Become a friend of the show
Stay in the know and get a chance to win our contests.
See our privacy statement about email communications.