Paperback: 164 pages
Publisher: Packt Publishing - ebooks Account; 2 edition (February 15, 2016)
Understand the structural, creational, and behavioral Python design patterns
Get to know the context and application of design patterns to solve real-world problems in software architecture, design, and application development
Get practical exposure through sample implementations in Python v3.5 for the design patterns featured
With the increasing focus on optimized software architecture and design it is important that software architects think about optimizations in object creation, code structure, and interaction between objects at the architecture or design level. This makes sure that the cost of software maintenance is low and code can be easily reused or is adaptable to change. The key to this is reusability and low maintenance in design patterns.
Building on the success of the previous edition, Learning Python Design Patterns, Second Edition will help you implement real-world scenarios with Python's latest release, Python v3.5.
We start by introducing design patterns from the Python perspective. As you progress through the book, you will learn about Singleton patterns, Factory patterns, and Facade patterns in detail. After this, we'll look at how to control object access with proxy patterns. It also covers observer patterns, command patterns, and compound patterns.
By the end of the book, you will have enhanced your professional abilities in software architecture, design, and development.
What you will learn
Enhance your skills to create better software architecture
Understand proven solutions to commonly occurring design issues
Explore the design principles that form the basis of software design, such as loose coupling, the Hollywood principle and the Open Close principle among others
Delve into the object-oriented programming concepts and find out how they are used in software applications
Develop an understanding of Creational Design Patterns and the different object creation methods that help you solve issues in software development
Use Structural Design Patterns and find out how objects and classes interact to build larger applications
Focus on the interaction between objects with the command and observer patterns
Improve the productivity and code base of your application using Python design patterns
Amazon.com Review, The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation., First off, Learning Python shows the relationships among Python scripts and their interpreter (in a mostly platform-neutral way). Then, the authors address the mechanics of the language itself, providing illustrations of how Python conceives of numbers, strings, and other objects as well as the operators you use to work with them. Dictionaries, lists, tuples, and other data structures specific to Python receive plenty of attention including complete examples., Authors Mark Lutz and David Ascher build on that fundamental information in their discussions of functions and modules, which evolve into coverage of namespaces, classes, and the object-oriented aspects of Python programming. There's also information on creating graphical user interfaces (GUIs) for Python applications with Tkinter., In addition to its careful expository prose, Learning Python includes exercises that both test your Python skills and help reveal more elusive truths about the language. --This text refers to an out of print or unavailable edition of this title., Review, As a book for programmers who want to learn Python, it does a very good job. The coverage is informative and well order; making it easy to find what you're looking for. Overall, if you do some work with Python, you will benefit from owning this book. ' - Sam Smith, news@UK, March 'This book is a good example of Python culture, in the clarity of its text as much as in the quality of its code. Anyhone working their way through it will have a solid foundation upon which to explore Python's potential. Highly recommended.' - Ivan Uemilianin, CVu, October 2004 --This text refers to the Paperback edition.