#275 Beautiful Pythonic Refactorings
Play • 55 min
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: youtube.com
Presentation source code: github.com/codereport
Conor on Twitter: @code_report
Youtube channel: youtube.com/codereport
Perf example exceptions vs. test: gist.github.com/mikeckennedy
PyCon Online: us.pycon.org/2020/online
RAPIDS AI project: rapids.ai
Slides from presentation (with 9 refactoring steps): github.com/codereport
Talk Python episode on Sourcery: talkpython.fm/266

pip for venv only environment variable
PIP_REQUIRE_VIRTUALENV: docs.python-guide.org


Talk Python Training
More episodes
Clear search
Close search
Google apps
Main menu