Learning Python Design Patterns (Anglais) Broché – 25 novembre 2013
|Neuf à partir de||Occasion à partir de|
Les clients ayant acheté cet article ont également acheté
Description du produit
Présentation de l'éditeur
Written for intermediate Python programmers, this excellent tutorial will help streamline your work through the use of Design Patterns. You'll learn through example and clear explanations to expand your know-how and speed up your output.
- Explore the Model-View-Controller pattern and learn how to build a URL shortening service
- All design patterns use a real-world example that can be modified and applied in your software
- No unnecessary theory! The book consists of only the fundamental knowledge that you need to know
Design pattern is a well-known approach to solve some specific problems which each software developer comes across during his work. Design patterns capture higher-level constructs that commonly appear in programs. If you know how to implement the design pattern in one language, typically you will be able to port and use it in another object-oriented programming language.
The choice of implementation language affects the use of design patterns. Naturally, some languages are more applicable for certain tasks than others. Each language has its own set of strengths and weaknesses. In this book, we introduce some of the better known design patterns in Python. You will learn when and how to use the design patterns, and implement a real-world example which you can run and examine by yourself.
You will start with one of the most popular software architecture patterns which is the Model- View-Controller pattern. Then you will move on to learn about two creational design patterns which are Singleton and Factory, and two structural patterns which are Facade and Proxy. Finally, the book also explains three behavioural patterns which are Command, Observer, and Template.
What you will learn from this book
- Create different implementations of the same algorithm with the least modifications
- Implement the publisher-subscriber pattern
- Create an object when only one instance of it is needed
- Create a simple interface using the Facade design pattern
- Increase the functionality while leaving the interface unchanged
This book takes a tutorial-based and user-friendly approach to covering Python design patterns. Its concise presentation means that in a short space of time, you will get a good introduction to various design patterns.
Who this book is written for
If you are an intermediate level Python user, this book is for you. Prior knowledge of Python programming is essential. Some knowledge of UML is also required to understand the UML diagrams which are used to describe some design patterns.
Biographie de l'auteur
Gennadiy Zlobin works as a lead software engineer in a Russian music service, Zvooq.ru. He has been using Python as primary language for more than four years, enjoying its elegance and power on a daily basis. His professional interests include high-load software architectures, good engineering practices, Android OS, and natural language processing.
Previously, he worked for the company that had the first search engine in Russia, called Rambler. He was engaged in airline tickets' meta search service and Rambler's index page.
Aucun appareil Kindle n'est requis. Téléchargez l'une des applis Kindle gratuites et commencez à lire les livres Kindle sur votre smartphone, tablette ou ordinateur.
Pour obtenir l'appli gratuite, saisissez votre numéro de téléphone mobile.
Détails sur le produit
Si vous vendez ce produit, souhaitez-vous suggérer des mises à jour par l'intermédiaire du support vendeur ?
|5 étoiles (0%)|
|4 étoiles (0%)|
|3 étoiles (0%)|
|2 étoiles (0%)|
|1 étoile (0%)|
Commentaires client les plus utiles sur Amazon.com
The author starts big introducing MVC: a questionable choice. The MVC architectural pattern, which many Python programmers have met through Django, probably deserves a book on its own, rather than a single chapter. This ends up with the reader scratching his head confused rather than illuminated, unless he was exposed to it through some web framework already.
Singletons have the spotlight in the second chapter, a very short chapter but very well explained. Both normal and borg singletons are presented with clear examples. The author doesn't really go easy on the code and expects you to have some very good knowledge of Python Object Oriented Programming. Still, if this book is for intermediate Python programmers, why doesn't the author import the methods he needs instead of importing half the world? Come on, let's get used to some good programming habits!
Chapters three to six are dedicated to Factories and the Facade, Observer and Proxy patterns. Each chapter is a gem that you wanna read over and over and make that knowledge yours. The concepts are so well explained that the only thing I can bitch about are those UML diagrams, probably done in a hurry. They don't really add any value.
This is a good book. Not great, but good.
Don't get fooled by its short size. The pages are not many but they come with lots of interesting things to learn. It should definitely be in the bookshelf of any programmer that wanna taken seriously with Python. Each pattern is first explained with words, then through examples. While I don't like the coding style of the author, I must admit that the code gets to the point and clearly gives you an idea of how the patterns work, given that you understand the syntax.
As usual, you can find more reviews on my personal blog: http://books.lostinmalloc.com. Feel free to pass by and share your thoughts!
Two minor drawbacks: the length of the book (it's around seven chapters and would take an intermediate Python developer only an hour or two to absorb) and the tendency of the authors to err on the side of code-dump instead of explaining piece-by-piece.