Tips for Clean Python Code - Talk Python to Me Ep.404

Published: 01 January 1970
on channel: Talk Python
5,189
155

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.

▬▬▬▬ About the podcast ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

This video is the uncut, live recording of the Talk Python To Me podcast ( https://talkpython.fm ). We cover Python-focused topics every week and publish the edited and polished version in audio form. Subscribe in your podcast player of choice (100% free) at https://talkpython.fm/subscribe.

▬▬▬▬ Guests ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Bob on Mastodon: https://fosstodon.org/@bbelderbos

▬▬▬▬ Links and resources from the show ▬▬▬▬▬▬▬▬▬▬▬▬

PyBites: https://pybit.es/
Tips for clean code in Python article: https://pybit.es/articles/tips-for-cl...
Refactoring book: https://pybitesbooks.com/books/2H1_Dw...
Final type: https://docs.python.org/release/3.11....
Sentinels pattern: https://python-patterns.guide/python/...
Black formater: https://pypi.org/project/black/
Guarding clauses:   / guard-clauses  
ChatGPT: https://chat.openai.com/chat
Git Precommit: https://pre-commit.com/
#100DaysOfCode in Python course: https://training.talkpython.fm/course...
#100DaysOfWeb in Python course: https://training.talkpython.fm/course...

Listen this episode on Talk Python: https://talkpython.fm/episodes/show/4...
Episode transcripts: https://talkpython.fm/episodes/transc...

▬▬▬▬ Dive deeper ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Listen to the Talk Python To Me podcast at https://talkpython.fm Over 250 hours of Python courses at https://training.talkpython.fm/courses Follow us on on Mastodon. Michael: https://fosstodon.org/@mkennedy & Talk Python https://fosstodon.org/@talkpython


On this page of the site you can watch the video online Tips for Clean Python Code - Talk Python to Me Ep.404 with a duration of hours minute second in good quality, which was uploaded by the user Talk Python 01 January 1970, share the link with friends and acquaintances, this video has already been watched 5,189 times on youtube and it was liked by 155 viewers. Enjoy your viewing!