Introduction to Patterns

Introduction to Patterns - Introduction to Patterns They...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Introduction to Patterns They are reusable design solutions to reoccurring problems. Modeled after Architectural design Patterns have been called the next best software improvement since object-oriented programming. Introduced in the book Design Patterns: Elements of Reusable Object-Oriented Software by Gamma, Helm, Johnson and Vlissides [GoF95] Introduction to Patterns Modeled after the books: A pattern language: Towns, Buildings, Construction by architect Christopher Alexander. Examples: Symmetry is good Use half-round arches to support bridges and in doors. Same equivalent ideas exist in software design Parts of a Software Pattern Pattern Name Synopsis One to two sentence description. Context Describes the problem the pattern addresses. Forces What leads to the solution proposed. Solution Describes the general solution. Consequences Implications good and bad. Implementation What to consider when programming the solution Related Patterns Proxy Pattern Synopsis: Forces method calls to an object to occur through a proxy object. Context: A proxy may give the illusion that the object is local when it is in a different machine (remote-proxy). A proxy controls access (access proxy). Proxy acts as a logger object....
View Full Document

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University-West Lafayette.

Page1 / 17

Introduction to Patterns - Introduction to Patterns They...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online