The Facade Design Pattern
Short 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
Related Books:Related Searches: perl archive network, comprehensive perl archive network, level implementation, complex system, panix
Comments
Leave a Reply