- Defining Design Patterns
- The Learning Process
- Notes on Object-Oriented Approaches
- Python Design Patterns
- References
The Learning Process
We have found that learning design patterns is a multiple-step process:
Acceptance
Recognition
Internalization
First, you accept the premise that design patterns are important in your work. Then you recognize that you need to read about design patterns in order to determine when you might use them. Finally, you internalize the patterns in sufficient detail that you know which ones might help you solve a given design problem.
For some lucky people, design patterns are obvious tools, and they grasp their essential utility just by reading summaries of the patterns. For many of the rest of us, there is a slow induction period after we’ve read about a pattern, followed by the proverbial “Aha!” when we see how we can apply them in our work. These chapters help take you to that final stage of internalization by providing complete, working programs that you can try out for yourself.
The examples in Design Patterns are brief and are written in either C++ or, in some cases, Smalltalk. If you are working in another language, it is helpful to have the pattern examples in your language of choice. This part of the book attempts to fill that need for Python programmers.