Flyweight is an optimization design pattern; therefore, it is not easy to find a good real-life example of it. We can think of Flyweight as caching in real life. For example, many bookstores have dedicated shelves with the newest and most popular publications. This is a cache. First, you can take a look at the dedicated shelves for the book you are looking for, and if you cannot find it, you can ask the librarian to assist you.
Mastering Python Design Patterns
By :
Mastering Python Design Patterns
By:
Overview of this book
Table of Contents (23 chapters)
Mastering Python Design Patterns
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The Builder Pattern
The Prototype Pattern
The Adapter Pattern
The Decorator Pattern
The Facade Pattern
The Flyweight Pattern
The Model-View-Controller Pattern
The Proxy Pattern
The Chain of Responsibility Pattern
The Command Pattern
The Interpreter Pattern
The Observer Pattern
The State Pattern
The Strategy Pattern
The Template Pattern
Index
Customer Reviews