Ceci est une ancienne révision du document !
Object-Oriented Python Master OOP by Building Games and GUIs Author: Irv Kalb Publisher: No Starch Press Release Date: December 2021 416 pages ISBN 978-1-7185-0206-2 (print) Price: $44.99 (PREORDER) Website: https://nostarch.com/object-oriented-python When Ronnie came to me and asked if I would like to do a review of this book, I was pretty excited about the possibility. Being a teacher (of sorts) of programming, OOP was one of the subjects that I looked forward to and dreaded at the same time. When I started programming, OOP was not even a thing. I can remember back in the early 1990s, creating a simulation of AGVs (Automatic Guided Vehicles) in a manufacturing warehouse environment, moving parts from one section of the plant to another, following lines in the floor to get to the various work stations. It was a major challenge for me, since I had just wrapped my head around the idea of objects and how to use them in programs.
Mr. Kalb has decided to take the approach to explaining Objects by breaking the subject into four logical parts, first showing how to handle a project using “regular” Python programming and then rewriting the examples and explaining them in terms of OOP. Not really the path that I would take, so I was even more curious to see how he would accomplish this task. Mr. Kalb has also decided to use Games and Graphical User Interfaces as the focus in teaching the subject of creating objects and manipulating them in ways that make sense to readers who might have a basic understanding of OOP, but want to get to the next level. Many authors have tried this approach with varying levels of success. I have to say that Mr. Kalb has succeeded in this in a logical and clear way. The projects for the most part are real world appropriate, and easily understandable for multiple levels of expertise of the readers. According to his own words, “The book is intended to be an intermediate-level text.” Readers who have no background in Python would certainly struggle a bit, but those who have the basics of Python down will certainly benefit from this book.
The only thing that I found as a major negative is the fact that he covers the installation of Python only in a Microsoft Windows environment. No mention of Linux or MAC. However, as I think about it, I guess Linux and MAC users have the benefit that Python is already being installed in the OS for most distributions. All in all, I have to give this book 4 ½ stars, and anyone who is interested in learning Python Object Oriented Programming would benefit by having this book in their library. Kudos to both Mr. Kalb and No Starch Press for this book!
Table of Contents Acknowledgments Introduction PART I: INTRODUCING OBJECT-ORIENTED PROGRAMMING Chapter 1: Procedural Python Chapter 2: Modeling Physical Objects with Object-Oriented Programming Chapter 3: Mental Models of Objects and the Meaning of “self” Chapter 4: Managing Multiple Objects PART II: GRAPHICAL USER INTERFACES WITH PYGAME Chapter 5: Introduction to Pygame Chapter 6: Object-Oriented Pygame Chapter 7: Pygame GUI Widgets PART III: ENCAPSULATION, POLYMORPHISM, AND INHERITANCE Chapter 8: Encapsulation Chapter 9: Polymorphism Chapter 10: Inheritance Chapter 11: Managing Memory Used by Objects PART IV: USING OOP IN GAME DEVELOPMENT Chapter 12: Card Games Chapter 13: Timers Chapter 14: Animation Chapter 15: Scenes Chapter 16: Full Game: Dodger Chapter 17: Design Patterns and Wrap-Up Index