The Facade Design Pattern

The Facade Design PatternShort Description
The Facade design pattern provides an easy-to-use interface to an otherwise … The Facade design pattern connects the code we write for applications, …

Website: www.theperlreview.com | Filesize: 380kb

Content
The Facade Design Pattern
brian d foy, comdog@panix.com
Abstract
The 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 its implementation.
1 Introduction
The Facade design pattern connects the code we write for applications, which do specific tasks, such as
creating a report, and the low level implementation that handle the details, such as reading file, interacting
with the network, and creating output. The facade is an interface that an application can use to get things
done without worrying about the details. The facade decouples these layers so that they don’t depend on
each other, which makes each easier to develop, easier to use, and promotes code re-use.
I can use this design pattern to deal with a complex system that already exists, or one that I want to make
from scratch. Several Perl modules available on the Comprehensive Perl Archive Network (CPAN) represent
facades, even if they do not admit it.
2 Illustration of use
To request a simple file from a web site, I have to create a connection to the web site, request the resource…

Get the file Download here

AddThis Social Bookmark Button
Related Books:
  • Douglas C. Schmidt Case Studies Using Patterns Case Study …
  • Generating design pattern detectors from pattern specifications …
  • The Visitor design pattern
  • Model-View-Controller A Design Pattern for Software
  • Automatic resource management as a C++ design pattern
  • POD a composition environment for pattern-oriented design …
  • Using RoleOf Relationship in Design Pattern Instantiation
  • Design Pattern

  • Related Searches: , , , ,



    Comments

    Leave a Reply