๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Mastering Python Design Patterns

โœ Scribed by Kasampalis, Sakis


Publisher
Packt Publishing
Year
2015
Tongue
English
Leaves
212
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Create various design patterns to master the art of solving problems using PythonAbout This Book Simplify design pattern implementation using the power of Python Each pattern is accompanied with a real-world example demonstrating its key features This is an easy-to-follow guide focusing on the practical aspects of Python design patterns Who This Book Is ForThis book is for Python programmers with an intermediate background and an interest in design patterns implemented in idiomatic Python. Programmers of other languages who are interested in Python can also benefit from this book, but it would be better if they first read some introductory materials that explain how things are done in Python.What You Will Learn Explore Factory Method and Abstract Factory for object creation Clone objects using the Prototype pattern Make incompatible interfaces compatible using the Adapter pattern Secure an interface using the Proxy pattern Choose an algorithm dynamically using the Strategy pattern Extend an object without subclassing using the Decorator pattern Keep the logic decoupled from the UI using the MVC pattern In DetailPython is an object-oriented, scripting language that is used in wide range of categories. In software engineering, a design pattern is a recommended solution to a software design problem. Although not new, design patterns remain one of the hottest topics in software engineering and they come as a ready reference for software developers to solve the common problems they face at work.This book will take you through each and every design pattern explained with the help of real-world examples. The aim of the book is to introduce more low-level detail and concepts on how to write Pythonic code, not just focusing on common solutions as implemented in Java and C++. It includes small sections on troubleshooting, best practices, system architecture, and its design aspects. With the help of this book, you will be able to understand Python design pattern concepts and the framework, as well as issues and their resolution. You'll focus on all 16 design patterns that are used to solve everyday problems.

โœฆ Table of Contents


Cover......Page 1
Copyright......Page 3
Credits......Page 4
About the Author......Page 5
About the Reviewers......Page 6
www.PacktPub.com......Page 8
Table of Contents......Page 10
Preface......Page 14
Factory Method......Page 22
Use cases......Page 23
Implementation......Page 25
A real-life example......Page 33
Implementation......Page 34
Summary......Page 40
Chapter 2: The Builder Pattern......Page 42
A software example......Page 43
Use cases......Page 44
Implementation......Page 47
Summary......Page 56
Chapter 3: The Prototype Pattern......Page 58
A real-life example......Page 60
Use cases......Page 61
Implementation......Page 62
Summary......Page 67
Chapter 4: The Adapter Pattern......Page 70
A software example......Page 71
Implementation......Page 72
Summary......Page 76
Chapter 5: The Decorator Pattern......Page 78
A real-life example......Page 79
Use cases......Page 80
Implementation......Page 81
Summary......Page 86
Chapter 6: The Facade Pattern......Page 88
A software example......Page 89
Implementation......Page 90
Summary......Page 96
Chapter 7: The Flyweight Pattern......Page 98
Use cases......Page 99
Implementation......Page 100
Summary......Page 105
Chapter 8: The Model-View-Controller Pattern......Page 106
A software example......Page 107
Use cases......Page 108
Implementation......Page 109
Summary......Page 113
Chapter 9: The Proxy Pattern......Page 116
A real-life example......Page 119
Use cases......Page 120
Implementation......Page 121
Summary......Page 125
Chapter 10: The Chain of Responsibility Pattern......Page 126
A software example......Page 128
Use cases......Page 129
Implementation......Page 130
Summary......Page 135
Chapter 11: The Command Pattern......Page 138
A software example......Page 139
Implementation......Page 140
Summary......Page 148
Chapter 12: The Interpreter Pattern......Page 150
A software example......Page 151
Use cases......Page 152
Implementation......Page 153
Summary......Page 160
A real-life example......Page 162
A software example......Page 163
Implementation......Page 164
Summary......Page 171
Chapter 14: The State Pattern......Page 172
A real-life example......Page 174
Implementation......Page 175
Summary......Page 182
Chapter 15: The Strategy Pattern......Page 184
A real-life example......Page 185
A software example......Page 186
Use cases......Page 187
Implementation......Page 188
Summary......Page 193
Chapter 16: The Template Pattern......Page 194
A real-life example......Page 200
Use cases......Page 201
Implementation......Page 202
Summary......Page 205
Index......Page 206

โœฆ Subjects


Computer Science;Programming;Nonfiction;Computers;Science


๐Ÿ“œ SIMILAR VOLUMES


Mastering Python Design Patterns
โœ Ayeva, Kamon;Kasampalis, Sakis ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Packt Publishing, Limited ๐ŸŒ English

Exploit various design patterns to master the art of solving problems using Python Key Features Master the application design using the core design patterns and latest features of Python 3.7 Learn tricks to solve common design and architectural challenges Choose the right plan to improve your progra

Mastering Python Design Patterns
โœ Ayeva, Kamon;Kasampalis, Sakis ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Packt Publishing ๐ŸŒ English

Exploit various design patterns to master the art of solving problems using Python Key Features Master the application design using the core design patterns and latest features of Python 3.7 Learn tricks to solve common design and architectural challenges Choose the right plan to improve your progra

Mastering Python Design Patterns
โœ Sakis Kasampalis ๐Ÿ“‚ Library ๐Ÿ“… 2015 ๐Ÿ› Packt Publishing ๐ŸŒ English

<p><b>Create various design patterns to master the art of solving problems using Python</b></p> <h2>About This Book</h2><ul><li>Simplify design pattern implementation using the power of Python</li><li>Each pattern is accompanied with a real-world example demonstrating its key features</li><li>This i