Book description
Create various design patterns to master the art of solving problems using Python
In Detail
Python 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.
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
Table of contents
-
Mastering Python Design Patterns
- Table of Contents
- Mastering Python Design Patterns
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. The Factory Pattern
- 2. The Builder Pattern
- 3. The Prototype Pattern
- 4. The Adapter Pattern
- 5. The Decorator Pattern
- 6. The Facade Pattern
- 7. The Flyweight Pattern
- 8. The Model-View-Controller Pattern
- 9. The Proxy Pattern
- 10. The Chain of Responsibility Pattern
- 11. The Command Pattern
- 12. The Interpreter Pattern
- 13. The Observer Pattern
- 14. The State Pattern
- 15. The Strategy Pattern
- 16. The Template Pattern
- Index
Product information
- Title: Mastering Python Design Patterns
- Author(s):
- Release date: January 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783989324
You might also like
book
Mastering Python Design Patterns - Second Edition
Exploit various design patterns to master the art of solving problems using Python Key Features Master …
book
Learning Python Design Patterns - Second Edition
Leverage the power of Python design patterns to solve real-world problems in software architecture and design …
book
Mastering Concurrency in Python
Immerse yourself in the world of Python concurrency and tackle the most complex concurrent programming problems …
book
Python Programming with Design Patterns
Improve Your Python Code with Modern Object-Oriented Design Patterns To write clean, efficient, maintainable code, developers …