Design Pattern1 PDF
Design Pattern1 PDF
History
The origin of design patterns lies in work done by an architect named Christopher Alexander
during the late 1970s. He began by writing two books, A Pattern Language[Alex77] and A
Timeless Way of Building [Alex79] which, in addition to giving examples, described his
rationalle for documenting patterns.
The pattern movement became very quiet until 1987 when patterns appeared again at an
OOPSLA conference. Since then, many papers and presentations have appeared, authored
by people such as Grady Booch, Richard Helm, and Erich Gamma, and Kent Beck. From then
until 1995, many periodicals, featured articles directly or indirectly relating to patterns. In
1995, Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides published Design
Patterns: Elements of Reusable Object-Oriented Software [Gamma95], which has been
followed by more articles in trade journals, and an additional book by <To be filled in
later>.
Patterns Defined
Patterns are devices that allow programs to share knowledge about their design. In our
daily programming, we encounter many problems that have occured, and will occur again.
The question we must ask ourself is how we are going to solve it this time. Documenting
patterns is one way that you can reuse and possibly share the infomation that you have
learned about how it is best to solve a specific program design problem.
Essay writting is usually done in a fairly well defined form, and so is documenting design
patterns. The general form for documenting patterns is to define items such as:
1. The motivation or context that this pattern applies to.
2. Prerequisites that should be satisfied before deciding to use a pattern.
3. A description of the program structure that the pattern will define.
4. A list of the participants needed to complete a pattern.
5. Consequences of using the pattern...both positive and negative.
6. Examples!