Design-DP - Design Pattern General DP MVC DP Summary CS585...

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

View Full Document Right Arrow Icon
CS585 1/ Design Pattern General DP MVC DP Summary
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS585 2/ Benefits of Design Patterns Look for Recurring Patterns of classes and communicating objects. These patterns : Solve a specific design problem Provide an Elegant, Reusable, and Flexible solutions Each Design Pattern; Names, Explains, and Evaluates an important and recurring design problem in OO systems AND Provide an Elegant solution to the problem in its context. Benefits: Reuse Choose design alternatives “get it right faster”
Background image of page 2
CS585 3/ Christopher Alexander et al. Oxford Univ. Press 1977. A pattern Language: Towns Buildings, Constructions. “Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution for that problem, in such away that you can use this solution a million times over, without ever doing it the same way twice.” Christopher proposed 250 Patterns for Architectural Design Each pattern represents a generic reusable solution to a recurring problem Short Passages Pattern “…, long, sterile corridors set the scene for everything bad about modern architecture…” Solution …. “ keep passages short. Make theme rooms as much like rooms as possible, with carpets or wood on the floor, …., beautiful windows, … the best are those with the whole wall is a window …”
Background image of page 3

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

View Full DocumentRight Arrow Icon
CS585 4/ Elements of a Design Pattern Pattern Name A handle used to describe the design problem, its solution and consequences in one word Problem When to apply the pattern Explain the context Solution What are the Elements that make up the design, their relationships, responsibilities and collaboration Consequences Results and tradeoffs
Background image of page 4
CS585 5/ Elements of a Design Pattern Design Patterns are “ Descriptions of Communicating Objects that are customized to solve a general design problem in a particular context ”. The recurring aspects of designs are called design patterns. A pattern is the outline of a reusable solution to a general problem encountered in a particular context Many of them have been systematically documented for all software developers to use A good pattern should Be as general as possible Contain a solution that has been proven to effectively solve the problem in the indicated context.
Background image of page 5

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

View Full DocumentRight Arrow Icon
CS585 6/ General Example MVC Pattern Decouples views and models by establishing subscribe / notify protocol between them Views represent the state of the model Model contains data values Controller mediates between views and model See MVC Next Slide
Background image of page 6
CS585 7/ MVC Example of Design Patterns A B C C D
Background image of page 7

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

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

Page1 / 26

Design-DP - Design Pattern General DP MVC DP Summary CS585...

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

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