Chapter 8. Python Design Patterns I
We've covered the basic building blocks of object-oriented programming. Now, we'll look at secondary structures that can be built from those blocks. These higher-level structures, called design patterns, can help organize complex systems. In the next two chapters, we'll be covering:
- What design patterns are
- Numerous specific patterns
- A canonical implementation of each pattern in Python
- Python syntax to replace certain patterns
Design patterns
When engineers and architects decide to build a bridge, or a tower, or a building, they follow certain principles to ensure structural integrity. There are various possible designs for bridges (suspension or cantilever for example), but if the engineer doesn't use one of the ...
Get Python 3 Object Oriented Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.