CSC/ECE 517 Fall 2012/ch2b 1w61 ps

From Expertiza_Wiki
Jump to navigation Jump to search

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. Design Patterns Uncovered: The Facade Pattern

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. SourceMaking : Facade Design Pattern

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. Thecafetechno : Facade Design Pattern

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. Facade design pattern

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.

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