A musician is an example of the Interpreter pattern in reality. Musical notation represents the pitch and duration of a sound graphically. The musician is able to reproduce a sound precisely based on its notation. In a sense, musical notation is the language of music, and the musician is the interpreter of that language. The following figure, which is courtesy of www.sourcemaking.com [j.mp/smintpat], shows a graphical representation of the music example.
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