How I may help
LinkedIn Profile Email me!
Call me using Skype client on your machine

Reload this page Design Patterns

Here are my notes on using the vocabulary of design patterns to reuse designs.

Take the Brainbench certification test on Unified Modeling Language (UML)

 

Topics this page:

  • History
  • Features
  • Resources
  • Your comments???

    Related:

  • Programming Logic,
  • Applications Development
  •  

    Site Map List all pages on this site 
    About this site About this site 
    Go to first topic Go to Bottom of this page


    Set screen History: Where did this come from?


    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set screen Essential Elements

      A design pattern has four essential elements:
      • Pattern Name allow developers to discuss patterns without
      • Problem - when it makes sense to use a pattern.
      • Solution - the object designs and collaborations that solves a problem.
      • Consequences - the trade-offs involved in the solution and other patterns that may also be helpful.


    Go to Top of this page.
    Next topic this page

    Set screen Types of Patterns

      Type of Pattern Conventional
      Patterns
      Description
      Structural Patterns describe the architecture and how objects interact with each other. They allow designers to organize classes and objects into larger structures. adapter (wrapper)
      bridge
      composite
      decorator
      facade
      flyweight
      proxy
      Behavioral Patterns describes how objects are used to change the behavior of a system at run time. They assign responsibilities to objects. mediator
      chain of responsibility
      command
      interpreter
      iterator
      visitor
      template
      hook
      memento
      observer
      state
      strategy
      Creational Patterns are used when creating objects. They describe techniques to instantiate objects (or groups of objects). factory
      builder
      singleton
      prototype


    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set screen Structural Patterns

      The adapter pattern allows two objects to communicate even though they have incompatible interfaces. It is also known as the wrapper pattern. It uses an intermediary object that is compliant with the client object and delegates the execution of the object requests to the incompatible server object.

      A bridge pattern separates an interface from its implementation. Used by Microsoft's COM (ADO, RDO) for flexibility so that the two can vary independent (uncoupled) from each other at run-time. This pattern allows standarization of an implementation across multiple classes by bridging all interfaces classes to one implementation object.

      The Decorator pattern allows additional responsibilities to be assigned to an object dynamically, without subclassing or modifying the interface of the original object.

      The facade pattern is used when a system provides its services through multiple subsuystems or through calling multiple procedures. The facade shields clients from the intricacies of subsystems by making calls to its constituents to provide services.

      The Proxy pattern provides a surrogate object that delegates method calls to another object. It acts like a placeholder for an object that can be used to efficiently control access to the other object. The proxy mimics the other object to the extent that the client does not know it is communicating with a proxy. This pattern is used whenever an object needs to receive method calls on behalf of another object.

      The Composite pattern eliminates the need to write case statements that depend on the type of class when traversing a hierarchy. Client code can recursively iterate through a hierarchy without having to write separate code to distinguish between collections and primitives.

      The Flyweight pattern provides a method to pool and share a large number of contexts. It allows a single object to be used in several contexts simultaneously.


    Go to Top of this page.
    Next topic this page

    Set screen Behavioral Patterns


    Go to Top of this page.
    Next topic this page

    Set screen CreationalPatterns


    Go to Top of this page.
    Next topic this page

    Set screen Resources

     


    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Portions ©Copyright 1996-2014 Wilson Mar. All rights reserved. | Privacy Policy |


    How I may help

    Send a message with your email client program


    Your rating of this page:
    Low High




    Your first name:

    Your family name:

    Your location (city, country):

    Your Email address: 



      Top of Page Go to top of page

    Thank you!