meta_pixel
Tapesearch Logo
Log in
Talk Python To Me

#275: Beautiful Pythonic Refactorings

Talk Python To Me

Michael Kennedy

Technology

4.8635 Ratings

🗓️ 1 August 2020

⏱️ 55 minutes

🧾️ Download transcript

Summary

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.

Transcript

Click on a timestamp to play from that location

0:00.0

Do you obsess about writing your code just the right way before you get started?

0:04.2

Maybe you have some ugly code on your hands and you need to make it better.

0:07.7

Either way, refactoring could be your ticket to happier days.

0:11.1

On this episode, we'll walk through a powerful example of iteratively refactoring some code

0:15.8

until we eventually turn our ugly duckling into a pythonic beauty.

0:20.4

Honor Hoekstra is our guest in this episode to talk us through refactoring some web scraping

0:24.3

Python code.

0:25.8

This is Talk Python to Me.

0:27.1

Episode 275 recorded July 9th, 2020. Welcome to Talk Python to Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.

0:50.4

This is your host, Michael Kennedy. Follow me on Twitter where I'm at M Kennedy.

0:57.6

Keep up with the show and listen to past episodes at talk python.fm.

1:00.1

And follow the show on Twitter via at Talk Python.

1:04.4

This episode is brought to you by us over at Talk Python training.

1:09.5

Python's async and parallel programming support is highly underrated.

1:13.6

Have you shied away from the amazing new Async and await keywords because you've heard it's way too complicated or that it's just not worth the effort?

1:17.7

With the right workloads, a hundred times speed up is totally possible with minor changes

1:22.0

to your code.

1:23.2

But you do need to understand the internals.

1:25.0

And that's why our course, Async techniques and examples in Python,

1:29.1

show you how to write async code successfully as well as how it works.

1:34.1

Get started with Async and await today with our course at TalkPython.fm slash async.

1:39.7

Connor, welcome to Talk Python to me.

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Michael Kennedy, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Michael Kennedy and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2025.