Those among you who have already learned some Python or may even have used it in some projects will certainly have heard the expression “Pythonic Code”, which conveys a general and somewhat wide meaning of “clean code and good software development practices in the context of Python”. With Effective Python, the author presents you with nothing less than 90 practical examples on how to adopt a pythonic developer mindset and how to write better Python code.

This is the second edition of a great book that Brett Slatkin had published in 2015, and which many of you may still recall. But this new edition has lots of new content (it has grown from 59 to 90 subjects or sections, and from around 250 to more than 400 pages). It has also been updated to cover some important new features that are included in recent Python versions, up to Python 3.8, which is currently the most up-to-date stable version and will be supported for some years after 3.9 comes out.

So, even if you have read the first edition, it may be worth checking it out because, besides having been revised and updated to reflect the constantly evolving best practices, it covers some more recent topics like assignment expressions (a.k.a. the walrus operator).

#python #web dev #code quality #review #clean code #python book

Book Review — Effective Python, by Brett Slatkin
1.55 GEEK