What are Design Patterns?

Christopher Alexander“Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice” by Christopher Alexander, architect (the guy in the picture).

This is true in object oriented design patterns, even if he was talking about patterns in building design.

A pattern is made of four essential elements:

1. The pattern name

2. The Problem

3. The Solution

4. The Consequences

This entry was posted in Design Patterns. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.