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
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 ...