Holt-patterns-slides

Holt-patterns-slides - Design Patterns Ric Holt & Sarah...

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

View Full Document Right Arrow Icon
Design Patterns U Waterloo, March 2010
Background image of page 1

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

View Full DocumentRight Arrow Icon
What is a Design Pattern A Design Pattern systematically names, explains, and implements an important recurring design. These define well-engineered design solutions that practitioners can apply when crafting their applications. 2
Background image of page 2
Why Design Patterns? Good designers do not solve every problem from first principles. They reuse solutions. Practitioners do not do a good job of recording experience in software design for others to use. Patterns help solve this problem. 3
Background image of page 3

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

View Full DocumentRight Arrow Icon
Four Example Patterns 1. MVC (Model View Controller) 2. Adapter 3. Facade 4. Factory 4
Background image of page 4
1. MVC Pattern (Model View Controller) There is a model (subject) which can be thought of as the application There are one or more views of the object (by observers) There is a controller that mediates between the model and the view(s). 5
Background image of page 5

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

View Full DocumentRight Arrow Icon
Example MVC a b c a b c [Mancoridis picture] Views Controller Model a b c 50 30 20 a = 50% b = 30% c = 20% 6
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2012 for the course CS 246 taught by Professor Wormer during the Winter '08 term at Waterloo.

Page1 / 20

Holt-patterns-slides - Design Patterns Ric Holt & Sarah...

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

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