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

From Expertiza_Wiki
Jump to navigation Jump to search
Line 75: Line 75:
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! No
! Yes
! Yes
|-
|-
! NetBeans
! RadRails
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
Line 97: Line 83:
! Yes
! Yes
|-
|-
! TextMate
! RadRails
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
Line 110: Line 89:
! Yes
! Yes
|-
|-
! RubyMine
! RadRails
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! No
! Yes
! Yes
|-
|-
! jRuby
! RadRails
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! No
! Yes
! No
! Yes
! Yes
|-
|-
! RDT (Eclipse)
! RadRails
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes
! Yes

Revision as of 08:49, 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.

7. http://www.dofactory.com/Patterns/PatternFacade.aspx#_self2

This page describes a very concise introduction to the Facade pattern. The author explains a brief overview of the pattern and it's usage using UML diagrams. The highlight of the article is a with an explanatory example and then a much more detailed real world example.

8. http://www.theperlreview.com/Articles/v0i4/facade.pdf

This paper is a scholarly article from the e-magazine "The Perl Review" [1] by Brian D. Foy. The article entails how the facade pattern is used to promote reusability and to use facades as objects. The article illustrates two different types of implementing the facade pattern - adhoc facades and apriori facades. There are sufficient examples to explain each subsection and all the code samples are in Perl.

9. http://www.programmersheaven.com/2/Tutorial-Design-Patterns-Structural-Facade

This is an extremely well detailed article that covers a wide variety of aspects ranging from technical definitions to actual real world implications of the facade pattern. It explains the pattern's complexities and intricacies with the help of well defined UML diagrams and actual pseudo-code to convey the idea as lucidly as possible. The article also provides with downloads of sample VB projects using the facade pattern.

10. http://www.netobjectivestest.com/PatternRepository/index.php?title=TheFacadePattern

This article details the Facade pattern and how it fixes real world problems like code in legacy system. It explains with lucid diagrams and illustrations how refactoring old, legacy code are fixed with facades. However, the only shortcoming is that it doesn't have actual code blocks to explain the concepts.

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.

3. Facade Design Pattern - Course C# 4.0

This video is from a series of design patterns tutorials using coded samples in C#. It is a step by step screencast that tries to explain the actual working of the facade pattern with a simple example.

Comparison

Sites Simple to Understand Coded Examples Languages Pseudo-Code
RadRails Yes Yes Yes Yes
RadRails Yes Yes Yes Yes
RadRails Yes Yes Yes Yes
RadRails Yes Yes Yes Yes
RadRails Yes Yes Yes Yes
RadRails Yes Yes Yes Yes

References

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