Cover image for Learning Python Design Patterns.
Learning Python Design Patterns.
Title:
Learning Python Design Patterns.
Author:
Zlobin, Gennadiy.
ISBN:
9781783283385
Personal Author:
Physical Description:
1 online resource (104 pages)
Contents:
Learning Python Design Patterns -- Table of Contents -- Learning Python Design Patterns -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Model-View-Controller -- Model - the knowledge of the application -- View - the appearance of knowledge -- Controller - the glue between the model and view -- Benefits of using the MVC -- Implementation in Python -- Summary -- 2. Creating Only One Object with the Singleton Pattern -- A module-level singleton -- A classic singleton -- The borg singleton -- Implementation in Python -- Summary -- 3. Building Factories to Create Objects -- The Factory Method -- Advantages of using the Factory Method pattern -- The Factory Method implementation -- Abstract Factory -- Advantages of using the Abstract Factory pattern -- Abstract Factory implementation -- Abstract Factory versus Factory Method -- Summary -- 4. The Facade Design Pattern -- The Facade design pattern -- Problems solved by the Facade pattern -- Advantages of the Facade design pattern -- Facades in Python's standard library -- Implementation in Python -- Summary -- 5. Facilitating Object Communication with Proxy and Observer Patterns -- Proxy design pattern -- Problems solved by the Proxy pattern -- The use of the Proxy pattern -- Advantages and disadvantages of the Proxy design pattern -- Implementation in Python -- Observer design pattern -- Problems solved by the Observer pattern -- Use of the Observer pattern -- Advantages of the Observer pattern -- Implementation in Python -- Summary.

6. Encapsulating Calls with the Command Pattern -- Command Pattern terminology -- Use cases of the Command design pattern -- Advantages and disadvantages of the Command design pattern -- Implementation in Python -- Summary -- 7. Redefining Algorithms with the Template Method -- The Template Method design pattern -- The benefits of the Template Method design pattern -- Using hooks -- Implementation in Python -- Summary -- Index.
Abstract:
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.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.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: