Talk Python to Me is a weekly podcast hosted by developer and entrepreneur Michael Kennedy. We dive deep into the popular packages and software developers, data scientists, and incredible hobbyists doing amazing things with Python. If you're new to Python, you'll quickly learn the ins and outs of the community by hearing from the leaders. And if you've been Pythoning for years, you'll learn about your favorite packages and the hot new ones coming out of open source.

#404: Clean Code in Python

February 20, 2023 01:04:42 61.08 MB Downloads: 0
Clean code is one of those aspects of your programming career that's easy to put on the back burner (sometimes by management more than yourself). But it's important in the short term for writing more debuggable and readable code. And important in the long run for avoiding having your program take on the dreaded "legacy code" moniker. We're fortunate to have Bob Belderbos back on the show. He's been thinking and writing about clean code and Python a lot lately and we'll dive into a bunch of tips you can use right away to make your code cleaner.


Links from the show

Bob on Mastodon: @bbelderbos@fosstodon.org
PyBites: pybit.es
Tips for clean code in Python article: pybit.es
Refactoring book: pybitesbooks.com
Final type: docs.python.org
Sentinels pattern: python-patterns.guide
Black formater: pypi.org
Guarding clauses: medium.com
ChatGPT: chat.openai.com
Git Precommit: pre-commit.com
#100DaysOfCode in Python course: training.talkpython.fm
#100DaysOfWeb in Python course: training.talkpython.fm
Watch this episode on YouTube: youtube.com
Episode transcripts: talkpython.fm

--- Stay in touch with us ---
Subscribe to us on YouTube: youtube.com
Follow Talk Python on Mastodon: talkpython
Follow Michael on Mastodon: mkennedy

Sponsors
Taipy
Brilliant 2023
Talk Python Training