Chapter 24
Design Patterns
When faced with the task of solving a new problem, most people will consider first previous problems they have encountered that seem to have characteristics in common with the new assignment. These previous problems can be used as a model, and the new problem can be attacked in a similar fashion, making changes as necessary to fit the different circumstances.
This insight lies behind the idea of a software design pattern. A pattern is really nothing more than an attempt to document a proven solution to a problem so that future problems can be more easily handled in a similar fashion.
Patterns have become important in the development of object-oriented programming because they aid in discussing structures and relationships ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access