Pybites Podcast cover image

Pybites Podcast

#059 - 10 Python clean code tips drawn from code reviews

Feb 17, 2022
10:38

This podcast episode is based on this article.

Additional resources:
- 10 Tips to Write Better Functions in Python
- Linting tools: flake8, black and pre-commit on which we have a training: Increase Python code quality with pre-commit
- Mentioned Vim plugin I use to disallow save if there are syntax errors
- Two exception handling articles: 7 Tips to Improve Your Error Handling in Python and Errors should never pass silently
- Not mentioned but relevant for the namespaces part: When to Write Classes in Python And Why it Matters
- Useful Python Built-in Functions [Beginner / Intermediate]
- Idiomatic Python: EAFP versus LBYL
- Zen of Python (or type "import this" in the REPL) / PEP8
- A great book in this context is Uncle Bob's Clean Code.

---
Thanks for listening. If you struggle with this, check out our PDM coaching program where we can significantly increase your Python and developer skills in 10 weeks.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode