
Robust Python
by Patrick Viafore · first published 2021
6mentions
2recommended by
4HN commenters
2021–2024first – last mentioned
50% recommend25% neutral25% critical
Affiliate links. As an Amazon Associate I earn from qualifying purchases.

I would recommend "Robust Python" by Patrick Viafore. It teaches you a lot about type annotations (among other thing) and gave me personally a whole new way of looking at the code that I write.
on “Understanding Python through its builtins” ↗If you're not averse to books I'm yet again recommending "Robust Python" by Patrick Viafore and for more esoteric things like metaclasses I would recommend "Expert Python Programming, 3rd Edition" by Michal Jaworski & Tarek Ziade. It's not wholly dedicated to metaclasses,…
on “Problems once solved by a metaclass can be solved by __init_subclass__” ↗Iglberger's "C++ Software Design: Design Principles and Patterns for High-Quality Software" and Viafore's "Robust Python: Write Clean and Maintainable Code" sound most useful to me personally, but there are several interesting books.
on “Humble Tech Book Bundle: Popular Programming Languages 2023 by O'Reilly” ↗Hey there. I'm the author of Robust Python, and the first quarter of my book is all about type hinting, so suffice to say I've thought about it a lot. What follows is strictly my opinion on things. I absolutely agree that there needs to be a…
on “Ask HN: Let's discuss Python type hints guidelines” ↗Author of Robust Python here: I definitely recommend Fluent Python as well once the 2nd edition is available. I wrote Robust Python to focus very much on how to write Python in a long-lived codebase and how to do trade-offs…
on “Understanding Python through its builtins” ↗I just read “Robust Python” book. My overall reaction is that book could have been written with half the length and still be valuable for me. I can't stop thinking if I could ask LLM to summarize each chapter for me, I still could…
on “Jeff Dean: Trends in Machine Learning [video]” ↗