Packt Publishing, 2013. — 100 p. — ISBN: 978-1-78328-337-8.
На англ. языке.
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: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.
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.
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.