CSC/ECE 517 Fall 2012/ch2b 1w61 ps: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 37: Line 37:
This video talks about the Facade design pattern along with the UML diagram and facade pattern implementation examples from the JDK. It also talks about the advantages and the scenarios in which this pattern can be used.
This video talks about the Facade design pattern along with the UML diagram and facade pattern implementation examples from the JDK. It also talks about the advantages and the scenarios in which this pattern can be used.


== 2. [http://www.youtube.com/watch?v=WLjvNpP6yeQ&feature=related Facade pattern]==
=== 2. [http://www.youtube.com/watch?v=WLjvNpP6yeQ&feature=related Facade pattern]===
This video explains the Facade pattern in detail along with a walk through of the code example. The link to the code is also provided in the video description.
This video explains the Facade pattern in detail along with a walk through of the code example. The link to the code is also provided in the video description.



Revision as of 06:58, 19 November 2012

Facade, directory of sites

Introduction

GoF definition for facade design pattern is, "Provide a unified interface to a set of interfaces in a subsystem. Facade Pattern defines a higher-level interface that makes the subsystem easier to use."

The following list of sites and online videos provide information about the Facade pattern, including the implementation.

Directory of Sites

1. Facade pattern (Wikipedia)

This page talks about the usage of the facade pattern. There is also a code example in Java describing the pattern. Although this page attempts to describe the facade pattern and also has a code example, there is very limited content on the pattern itself. This page does not specify the advantages and disadvantages of using this pattern. Also, there is no mention of the scenarios in which this pattern could be used. A comparison with other similar patterns like Adapter is also missing.

2. http://java.dzone.com/articles/design-patterns-uncovered-1

This article is well-structured and starts with a real world example of the facade pattern. It also specifies similarities with the Adapter pattern in it's description. It also tells the reader when to use this pattern along with a sequence diagram of the pattern. Finally, it provides a facade pattern code example in Java. This example also has comments to help the reader in understanding the code. The disadvantages of using this pattern are also described towards the end of the article.

3. http://sourcemaking.com/design_patterns/facade

This article separates the description into several well defined sections which provide a good overall understanding to the reader. The article starts with the need for this pattern and then goes on to describe the pattern pattern with an simple real life example. It also provides a 'Checklist' to guide the developer in implementing the pattern. Subtle differences between Adapter and Facade pattern are also mentioned. A very attractive part of this article is that there are code examples provides for different languages like C#, C++, Delphi, Java and PHP.

4. http://thecafetechno.com/tutorials/design-patterns/facade-pattern-in-java/

This page describes the need for using the facade pattern. It also has a good code example for the pattern which is easy to understand. An important section of this article is that it gives several scenarios where the facade pattern could be used. The conclusion describes the advantages of the pattern. An important section that is missing is a comparison with other similar patterns.

5. http://www.blackwasp.co.uk/Facade.aspx

This article describes the ideal usage of the facade pattern and the advantages of this pattern. It also gives a real world example where this pattern is used which gives the reader a better idea about the pattern. There is a generic UML diagram and code example for implementing this pattern. One of the shortcomings of this article is that it doesn't use a practical example for the implementation and only gives a very generic, high-level implementation.

6. http://userpages.umbc.edu/~tarr/dp/lectures/Facade.pdf

This document starts with the Intent for using the Facade pattern. It then goes on to describe the motivation and applicability for the pattern. The benefits and liabilities have also been mentioned towards the end. Although there is a real world example listed in this document, this document does not attempt to explain this example. Also, there is no code implementation present for this example.

Video tutorials on Facade pattern

1. JAVA: Facade Design Pattern

This video talks about the Facade design pattern along with the UML diagram and facade pattern implementation examples from the JDK. It also talks about the advantages and the scenarios in which this pattern can be used.

2. Facade pattern

This video explains the Facade pattern in detail along with a walk through of the code example. The link to the code is also provided in the video description.

Comparison

References

  1. http://en.wikipedia.org/wiki/GOF