1 / 6

Summary

Summary. What is a Design Pattern?. A Design Pattern is a solution to a problem in a context, where The context is the situation in which the pattern is applied, where such situations are encountered repeatedly

tomai
Télécharger la présentation

Summary

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Summary SE-2811 Dr. Mark L. Hornick

  2. What is a Design Pattern? A Design Pattern is a solution to a problem in a context, where • The context is the situation in which the pattern is applied, where such situations are encountered repeatedly • The solution is a general design that can be applied with small modifications to similar contexts SE-2811 Dr. Mark L. Hornick

  3. Design Patterns emerge from the software development community There is no central organization that invents Design Patterns • Patterns are “discovered” by software developers that recognize similarities in solutions applied in different contexts • experience helps • Patterns are “popularized” by software developers cataloging these solutions • Creating a common language that can be used in the development community SE-2811 Dr. Mark L. Hornick

  4. Design Patterns are categorized by formally describing their characteristics The “Pattern Community” has evolved a de-facto template outlining a Pattern’s • Intent • Motivation • Applicability • Structure • Consequences • Sample usage • …. SE-2811 Dr. Mark L. Hornick

  5. You can “discover” patterns too Practical experience is vital • Learn all you can about existing patterns • Write lots of applications • Reflect on your experiences • If you have a big idea, contribute it • See if your idea becomes accepted SE-2811 Dr. Mark L. Hornick

  6. Not all “Patterns” are beneficial Anti-Patterns tell you what to avoid in creating a solution to a problem • More negative consequences than positive benefits • Particular bad practices • Alternate, better approaches are suggested along with the description of the bad pattern’s aspects SE-2811 Dr. Mark L. Hornick

More Related