Preview

Css422 - Design Patterns

Better Essays
Open Document
Open Document
1044 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Css422 - Design Patterns
Design Patterns
****
CSS/422
****
****

Design Patterns The purpose of this paper is to compare and contrast five design patterns. An explanation of design patterns begins the paper. After the explanation are sections on Adapter, Facade, Factory Method, Observer, and Proxy. A conclusion completes the paper.
Definition and Explanation According to SourceMaking (2010), "In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design" (para. 1). Transforming a design pattern directly into code is not possible as it is not a complete design. Rather, a design pattern is a description or template for how to solve a problem with use in many different situations (SourceMaking, 2010). Design patterns concern themselves with three primary uses or families. Families include creational design patterns, structural design patterns, and behavioral design patterns. Creational design patterns revolve around class instantiation. Structural design patterns are specific to class and object composition. Behavioral design patterns are about object communication.
Adapter
Adapter is a structural design pattern. According to SourceMaking (2010), "Adapter is about creating an intermediary abstraction that translates, or maps, the old component to the new system" (Discussion, para. 3). In other words, Adapter allows for component reuse when implementing a new system. An analogy is attaching a composite to HDMI adapter between a gaming system and an HDTV. Without the adapter, the ability to display video in HD quality is not possible. Adapter works the same way, allowing for functionality between otherwise incompatible systems. Another word for Adapter is wrapper. In comparing with the Facade design pattern the difference is Facade defines a new interface and Adapter reuses and existing interface (SourceMaking, 2010).
Facade
Facade, like Adapter is a wrapper and a structural design pattern. Unlike Adapter, the



References: SourceMaking. (2010). Adapter Design Pattern. Retrieved from http://sourcemaking.com/design_patterns/adapter SourceMaking. (2010). Design Patterns. Retrieved from http://sourcemaking.com/design_patterns SourceMaking. (2010). Facade Design Pattern. Retrieved from http://sourcemaking.com/design_patterns/facade SourceMaking. (2010). Factory Method Design Pattern. Retrieved from http://sourcemaking.com/design_patterns/factory_method SourceMaking. (2010). Observer Design Pattern. Retrieved from http://sourcemaking.com/design_patterns/observer SourceMaking. (2010). Proxy Design Pattern. Retrieved from http://sourcemaking.com/design_patterns/proxy

You May Also Find These Documents Helpful

  • Good Essays

    The designer who uses his or her talents to adapt or change the successful designs of others and works for a manufacturer is called a (an)…

    • 823 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    The abstract plant method design pattern resembles the plant method; however it provides a dimension to the plant method. The abstract plant method pattern generates a group of families that is what adds the dimension (University of Phoenix,…

    • 579 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    The approach I used in unit 5 was a generic design which is flexible in nature with a basic layout planned so it can be easily molded, or modified to fulfill a variety of needs or applications. The wireframe associated with the design is shown without a supporting structure. The associated structure will be dictated by its application and placement.…

    • 1152 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why?…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    2. Class objects normally have _____ that perform useful operations on their data, but primitive variables do not.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Better Essays

    § New patterns are fitted to match known patterns rather than being acknowledged as being different…

    • 983 Words
    • 4 Pages
    Better Essays
  • Better Essays

    The approach I used in unit 5 was a generic design which is flexible in nature with a basic layout planned so it can be easily molded, or modified to fulfill a variety of needs or applications. The wireframe associated with the design is shown without a supporting structure. The associated structure will be dictated by its application and placement.…

    • 919 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    U23 A2

    • 742 Words
    • 2 Pages

    Pattern- It is important that the template used when designing the platform is easy to navigate through. This way the users wouldn’t have a problem using the platform.…

    • 742 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Caitlen

    • 323 Words
    • 2 Pages

    4. Patterns are found throughout the world. Some examples are the four seasons throughout a year, products in a grocery store, and the desks in your classroom. Henry Mosley recognized a pattern in the elements and arranged them so that they formed the Periodic Table we use today.…

    • 323 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Application architecture is the organizational design of an entire software application, including all sub-components and external applications interchanges. There are several design patterns that are used to define an application architecture. These patterns help to communicate how an application will complete the necessary business processes as defined in the system requirements.…

    • 856 Words
    • 4 Pages
    Good Essays
  • Good Essays

    References: Based on object-oriented application design best practices which are discussed in several areas such as the Code Project (www.codeproject.com) , skilsoft module Getting Started with Software Programming, EBOOK collection: Prelude to Programming. Concepts and Design, Fifth Edition…

    • 613 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Apa Social Work

    • 2040 Words
    • 9 Pages

    Patterns of interaction are defined as the sequential behaviors among family members that become habitual and are repetitive over time (Minuchin et al. 1967, 1981). Minuchin labeled this phenomenon as the structure of the family system.…

    • 2040 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    Rossi, A. Garrido and S. Carvalho: "Design Patterns for Object-Oriented Hypermedia Applications". Pattern Languages of Programs 2, Vlissides, Coplien and Kerth eds., Addison Wesley, 1996.…

    • 4750 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    my work

    • 926 Words
    • 4 Pages

    I have never heard of learning patterns until I started this class, these patterns really showed me a easier way of learning and better yet it showed me how to…

    • 926 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Angle Bisector Constructor

    • 2882 Words
    • 12 Pages

    In almost all places, designs and patterns have shapes and angles. They are seen in buildings, towers, bridges, houses, furniture and appliances, and even in fabrics and handicrafts.…

    • 2882 Words
    • 12 Pages
    Good Essays