Advanced Python Programming - Second Edition: Accelerate your Python programs using proven techniques and design patterns
V**R
More challenging read than I expected.
First impression was "Even though it's pretty long (~550 pages), this will be an easy read, because I already have substantial experience with Design Patterns in C++."Well, it was a lot more than just a Design Patterns in Python3 book. I wasn't very far into the book when my hubris became embarrassingly obvious. The author didn't even start in on the Design Patterns stuff until nearly 2/3rds of the way through the book. Well, that part was a comparably easy read, partially because using the GoF patterns in Python is a little easier than in C++. Well, mostly, anyway. Python3 makes using most of the GoF patterns pretty straightforward.The first two-thirds of the book were more challenging (and informative) than I expected. The author takes a deep dive into various ways to optimize and improve your code. Of course, he started off with the observation that the choice of algorithm totally dominates that process. But I certainly learned a lot about Python3 (and various library) optimizations.I got introduced to a lot of different things in Python3 that I didn't know existed, and got to review some things I had not encountered in a long time. In a way, learning Python is a lot like learning Java, in the sense that the syntax of the language is pretty easy to understand. The problem is that learning the proper syntax rules puts you at about 5% of the way to being a proficient programmer. Learning the "Pythonic" way of doing stuff (like making appropriate use of things like tuples and dictionaries) gets you to maybe 15%. Learning a huge body of existing libraries gets you to about 80%, after which incremental gains get more challenging.I think that this book can get you to almost 100% (actually, 100% might not really be achievable in any discipline -- or maybe the field just continues to expand) of the way to production programming. Well, this book and a few years of experience. If you already have a bit of Python3 experience, then this book is a great follow-on to get your Python3 chops to the next level.I liked the way the assessment questions were used, and I appreciated the coverage of the assessment answers at the end. The assessments were well-done.I can think of only two things to suggest for improvement. The first would be to make this into 3 books instead of one huge tome. That might have made it somewhat less overwhelming The second would be to provide an overview of how to use the various help facilities in Python. Although by the time you really need this book, you probably already have that 2nd part figured out.This book will be one that I return to often for reference.
R**N
Great Book for every python programmer!
The media could not be loaded. Advanced Python Programming 2nd edition by Quan Nguyen. Over 500 pages of pythonic knowledge that I consider a must know for anyone using python programming professionally. As a fulltime student working as a researcher, researching Breast Cancer detection using machine learning, I use python daily and this book has been so helpful for me in developing and strengthening areas I was previously lacking.Another one of the things I loved about this book is the example they use throughout the book, a simple particle simulator. If you love physics as I do, you will fall in love with this example, and how it grows throughout the book, getting better and better as we learn how to use more powerful techniques to achieve the best performance from whatever we are building.Advanced Python Programming 2nd Edition also covers topics like Machine Learning, just the basics, but it is a good start. It gets into how to use Concurrency and parallel processing, what the differences are between them, and what some of the common mistakes us beginners usually face when first starting out in these tough areas of python programming. This book is truly a toolbox of techniques for us to use, which can help us to become masters of this unique and diverse programming language.There is a whole section on Design Patterns which was recently so helpful for me in my research. I had to build a singleton class and had no idea what that even was, and I was able to look it up in this book and learn exactly what I needed to do to implement one on my own. Other design patterns covered are things like the Factory Pattern, the Builder Pattern, Creational Patterns – for which the Singleton was a part of, the Adapter Pattern, the Decorator Pattern, Bridge Pattern and more. It really gets into the nitty gritty of how to properly program in python.So, if you are programming in python professionally already or just looking for a book to boost up what you already know this book is for you. It does not get into the basics of python so it starts out assuming you already have that experience so if you never programmed in python before you may want to start someplace else before trying this book, but I think it is a great book for anyone who plans to use python on a regular basis.Packt books has done it again and brought us another great technical book by another great author, Quan Nguyen who does wonders in this book. Advanced Python Programming 2nd edition is an amazing book so I’d say pick it up if you can, it will not disappoint.
P**H
More a advanced python book for researchers
Not really for professional software people, for example I did a search for "docstring" and didn't find a reference. I wanted to understand some subtleties in the multiprocessing library, specifically joinable queue's, no discussion on it. It did go over the GIL in chapter 15, but maybe a couple of sentences in the intro would be justified for that? Could be a 5 star for researcher doing larger python apps, but barely a 3 star for advanced python programming for software professionals.
Trustpilot
1 day ago
2 weeks ago