News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Manage Complexity with the Facade Pattern
June 11, 2013 @ 11:54:25

On PHPMaster.com today a new tutorial has been posted about using the Facade design pattern to help reduce the complexity of your application. It can help interface between other pieces of code an make using them simpler (a "facade" on top of them).

Design patterns are built to standardize solutions for common problems faced in software development. [...] Facade is a design pattern used in almost every web application, but often without knowing. The term "design pattern" creates a mental image of something complex and difficult to understand. Even though this can be true sometimes, the Facade pattern is simple to implementation. Let's see what Facade is and what it does to help us write good code.

A simple example is given to help make the concept of a facade clearer - the process behind borrowing a book. As borrowing and returning a book could involve multiple library types, they use a facade to provide a common interface to all of them. With the concrete example in place, they then move on to the official definition of the pattern and two more "real world" examples: authentication against multiple social networks and working with WordPress meta functions.

0 comments voice your opinion now!
designpattern facade tutorial social network interface

Link: http://phpmaster.com/manage-complexity-with-the-facade-pattern

blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Data-centric Adobe Flash Builder development with the Zend Framework

SitePoint PHP Blog: Social Network Style Posting with PHP, MongoDB and jQuery - part 1

NetTuts.com: Setting Up User Authentication in Laravel Using Confide

Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP

Stefan Mischook's Blog: PHP Sessions Video Tutorials - Part 3


Community Events





Don't see your event here?
Let us know!


release podcast code community language threedevsandamaybe interview testing series api developer configure unittest laravel list application introduction library install wordpress

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework