Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Python Design Patterns - Third Edition

You're reading from  Mastering Python Design Patterns - Third Edition

Product type Book
Published in May 2024
Publisher Packt
ISBN-13 9781837639618
Pages 296 pages
Edition 3rd Edition
Languages
Authors (2):
Kamon Ayeva Kamon Ayeva
Profile icon Kamon Ayeva
Sakis Kasampalis Sakis Kasampalis
Profile icon Sakis Kasampalis
View More author details
Toc

Table of Contents (17) Chapters close

Preface 1. Part 1: Start with Principles
2. Chapter 1: Foundational Design Principles 3. Chapter 2: SOLID Principles 4. Part 2: From the Gang of Four
5. Chapter 3: Creational Design Patterns 6. Chapter 4: Structural Design Patterns 7. Chapter 5: Behavioral Design Patterns 8. Part 3: Beyond the Gang of Four
9. Chapter 6: Architectural Design Patterns 10. Chapter 7: Concurrency and Asynchronous Patterns 11. Chapter 8: Performance Patterns 12. Chapter 9: Distributed Systems Patterns 13. Chapter 10: Patterns for Testing 14. Chapter 11: Python Anti-Patterns 15. Index 16. Other Books You May Enjoy

Summary

Structural patterns are invaluable for creating clean, maintainable, and scalable code. They provide solutions for many of the challenges you’ll face in daily coding.

First, the adapter pattern serves as a flexible solution for harmonizing mismatched interfaces. We can use this pattern to bridge the gap between outdated legacy systems and modern interfaces, thus promoting more cohesive and manageable software systems.

Then, we discussed the decorator pattern that we use as a convenient way of extending the behavior of an object without using inheritance. Python, with its built-in decorator feature, extends the decorator concept even more by allowing us to extend the behavior of any callable without using inheritance or composition. The decorator pattern is a great solution for implementing cross-cutting concerns because they are generic and do not fit well into the OOP paradigm. We mentioned several categories of cross-cutting concerns in the Use cases for the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime