1 / 5

Patterns

Patterns. Reusable solutions to common object-oriented programming problems When given a programming problem, re-use an existing solution. Gang of Four 1995 23 Patterns. Simple Elegant Solutions. Design patterns capture solutions that have developed and evolved over time

platt
Download Presentation

Patterns

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. Patterns • Reusable solutions to common object-oriented programming problems • When given a programming problem, re-use an existing solution. Gang of Four 1995 23 Patterns

  2. Simple Elegant Solutions • Design patterns capture solutions that have developed and evolved over time • They aren't the designs people tend to generate initially. • They reflect untold redesign and recoding as developers have struggled for greater reuse and flexibility in their software.

  3. General Categories • Creational patterns • Create objects for your rather than using new • Factory Method, Abstract Factory, Builder, Prototype, Singleton • Structural patterns • Compose groups of objects into larger structures • Adapter, Bridge, Composite, Decorator, Façade, Flyweight, Proxy • Behavioral patterns • Define the communication between objects • Chain of responsibility, Observer, Strategy, Command, Interpreter, Iterator

  4. Nonfunctional Requirements may suggest a design pattern • “manufacturer independent”, “device independent”, “must support a family of products” • Abstract Factory Pattern • “must interface with an existing object” • Adapter Pattern • “must deal with the interface to several systems, some of them to be developed in the future” • Bridge Pattern

  5. Design Patterns Quick Reference • www.mcdonaldland.info/2007/11/28/40/

More Related