Mike Bayer
Creator of SQLAlchemy
Book Recommendations:
Recommended by Mike Bayer
âNow that Python 3 has finally become the standard version of Python, itâs already gone through eight minor releases and a lot of new features have been added throughout. Brett Slatkin returns with a second edition of Effective Python with a huge new list of Python idioms and straightforward recommendations, catching up with everything thatâs introduced in version 3 all the way through 3.8 that weâll all want to use as we finally leave Python 2 behind. Early sections lay out an enormous list of tips regarding new Python 3 syntaxes and concepts like string and byte objects, f-strings, assignment expressions (and their special nickname you might not know), and catch-all unpacking of tuples. Later sections take on bigger subjects, all of which are packed with things I either didnât know or which Iâm always trying to teach to others, including âMetaclasses and Attributesâ (good advice includes âPrefer Class Decorators over Metaclassesâ and also introduces a new magic method â__init_subclass__()â I wasnât familiar with), âConcurrencyâ (favorite advice: âUse Threads for Blocking I/O, but not Parallelism,â but it also covers asyncio and coroutines correctly) and âRobustness and Performanceâ (advice given: âProfile before Optimizingâ). Itâs a joy to go through each section as everything I read is terrific best practice information smartly stated, and Iâm considering quoting from this book in the future as it has such great advice all throughout. This is the definite winner for the âif you only read one Python book this year...â contest.â (from Amazon)
Updated and Expanded for Python 3 Itâs easy to start developing programs with Python, which is why the language is so popular. However, Pythonâs unique strengths, charms, and expressiveness can be hard to grasp, and there are hidden pitfalls that can easily trip you up. This second edition of Effective Python will help you master a truly âPythonicâ approach to programming, harnessing Pythonâs full power to write exceptionally robust and well-performing code. Using the concise, scenario-driven style pioneered in Scott Meyersâ best-selling Effective C++, Brett Slatkin brings together 90 Python best practices, tips, and shortcuts, and explains them with realistic code examples so that you can embrace Python with confidence. Drawing on years of experience building Python infrastructure at Google, Slatkin uncovers little-known quirks and idioms that powerfully impact code behavior and performance. Youâll understand the best way to accomplish key tasks so you can write code thatâs easier to understand, maintain, and improve. In addition to even more advice, this new edition substantially revises all items from the first edition to reflect how best practices have evolved. Key features include 30 new actionable guidelines for all major areas of PythonDetailed explanations and examples of statements, expressions, and built-in typesBest practices for writing functions that clarify intention, promote reuse, and avoid bugsBetter techniques and idioms for using comprehensions and generator functionsCoverage of how to accurately express behaviors with classes and interfacesGuidance on how to avoid pitfalls with metaclasses and dynamic attributesMore efficient and clear approaches to concurrency and parallelismSolutions for optimizing and hardening to maximize performance and qualityTechniques and built-in modules that aid in debugging and testingTools and best practices for collaborative developmentEffective Python will prepare growing programmers to make a big impact using Python.
Get a weekly reading digest
New expert-recommended books every week. No account needed.
