
#059 - 10 Python clean code tips drawn from code reviews
About this episode
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 every episode summarized
Each time Pybites Podcast publishes, we email you a written briefing from the transcript — the topics, who appeared, and any specific claims, with the ad reads skipped.
Email me new episodesFree for 3 shows. No card needed.
Hosts & guests
No transcript yet
This episode has not been transcribed. Request it and it moves to the front of the queue.
More episodes
More from Pybites Podcast

#218: Why Python developers are learning Rust
Pybites Podcast

#217: Building a Production RAG Pipeline is Easier Than You Think - with Tim Gal...
Pybites Podcast

#216: Resolving our own git mess
Pybites Podcast

#215: Arthur Pastel on creating actionable optimisations with CodSpeed
Pybites Podcast