Facade Design Pattern
page 1 of 5
Published: 04 Sep 2006
Abstract
This article demonstrates the Facade design pattern with the help of Non-Software and Software examples such as the Web Service Facade.
by Vishal Kumar Patil
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 16603/ 290

Overview

This article provides a brief introduction to Facade Design Patterns.  Facade Design pattern provides an easy to use interface to an otherwise complicated collection of interfaces or subsystems.  It makes things easier by hiding the details of the implementation.

When designing good programs, programmers usually attempt to avoid excess coupling between module/classes.  Using this pattern helps to simplify much of the interfacing that makes large amounts of coupling complex to use and difficult to understand.

In a nutshell, this is accomplished by creating a small collection of classes that have a single class (Facade) that is used to access them.

The facade pattern is an object-oriented design pattern.  A facade is an object that provides a simplified interface to a larger body of code, such as a class library.  A facade can accomplish all of the following.

  • It can make a software library easier to use and understand since the facade has convenient methods for common tasks.
  • It makes code that uses the library more readable for the same reason.
  • It can reduce dependencies of outside code on the inner workings of a library since most code uses the facade.  This allows for more flexibility in developing the system.
  • It can wrap a poorly designed collection of APIs with a single well-designed API.

The following Non-software and software examples demonstrate this pattern.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 8 and 6 and type the answer here:

User Comments

Title: Fetching Article For Beginners   
Name: Rajesh Shah
Date: 8/12/2008 6:18:16 AM
Comment:
It's better for beginners as this gives good insights of facade.
Title: Good Article   
Name: Hariom
Date: 8/20/2007 1:01:03 AM
Comment:
It's a good article for the beginners. Please expend it moree if you can.
Title: ugly graphics   
Name: Famous Coward
Date: 1/31/2007 3:26:21 AM
Comment:
Next time, use better color schemes. These hurt my eyes so bad I gave the whole article a skip. =P
Title: Programmer   
Name: Chakri
Date: 12/27/2006 7:37:48 AM
Comment:
The article provides the basic insight of the Facade Design Pattern. Appreciations to the writer.
Title: Could have Extended more on Sofware Example for Facade   
Name: Ponnu
Date: 9/7/2006 6:29:07 AM
Comment:
Hi Vishal,

Really a nice article for begginers, you could have extended more on the Software example though.

Ponnu

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 8/30/2008 12:59:47 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search