<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Jun 2013 08:41:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Manage Complexity with the Facade Pattern]]></title>
      <guid>http://www.phpdeveloper.org/news/19702</guid>
      <link>http://www.phpdeveloper.org/news/19702</link>
      <description><![CDATA[<p>
On PHPMaster.com today a new tutorial has been posted about <a href="http://phpmaster.com/manage-complexity-with-the-facade-pattern/">using the Facade design pattern</a> 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).
</p>
<blockquote>
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.
</blockquote>
<p>
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.
</p>
Link: http://phpmaster.com/manage-complexity-with-the-facade-pattern]]></description>
      <pubDate>Tue, 11 Jun 2013 11:54:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: My Favorite Design Patterns]]></title>
      <guid>http://www.phpdeveloper.org/news/16242</guid>
      <link>http://www.phpdeveloper.org/news/16242</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's a new article from <i>Keith Casey</i> where he talks about some of his <a href="http://devzone.zend.com/article/14003-My-Favorite-Design-Patterns">favorite design patterns</a> he's come across in his time as a developer - adapter, facade and decorator.
</p>
<blockquote>
Within the <a href="http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29">Design Patterns</a> world, there are four main categories: Architectural, Structural, Creational, and Behavioral. Architectural patterns describe the system as a whole, Structural patterns describe the relationships between objects, Creational handle creating objects, and finally Behavioral describe the communication patterns between objects.  Each of the categories is worth discussion on its own, but in this case we'll stick to the Structural patterns of Adapter, Facade, and Decorator.
</blockquote>
<p>
He describes each of the patterns (no code in this one, just descriptions) and for each mentions some of the tools that the <a href="http://framework.zend.com">Zend Framework</a> has to offer that match up. For example, the Adapter pattern is used in quite a few places in the framework including in the Zend_Db component for the connection types to different databases.
</p>]]></description>
      <pubDate>Mon, 25 Apr 2011 10:38:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Handling File Data with the Facade Pattern in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/7152</guid>
      <link>http://www.phpdeveloper.org/news/7152</link>
      <description><![CDATA[<p>
DevShed has <a href="http://www.devshed.com/c/a/PHP/Handling-File-Data-with-the-Facade-Pattern-in-PHP-5/">posted the last installment</a> of their series looking at the use of the Facade design pattern. This time, they're looking specifically at its use in handling file data for the items on the local file system.
</p>
<blockquote>
I'm going to continue demonstrating the application of the facade pattern, this time by developing yet another illustrative application. It will take care of processing the contents of a selected data file in different ways.
</blockquote>
<p>
They start from scratch with the development of the sample script - creating a simple class that implements the pattern, then modifying it to work as a string processor and finally pulling them together to read the data for a file and echo out the processed results.
</p>]]></description>
      <pubDate>Tue, 23 Jan 2007 13:31:27 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Introducing the Facade Pattern in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/7101</guid>
      <link>http://www.phpdeveloper.org/news/7101</link>
      <description><![CDATA[<p>
DevShed continues with their look at design patterns in PHP with <a href="http://www.devshed.com/c/a/PHP/Introducing-the-Facade-Pattern-in-PHP-5/">the first part</a> of a new series today discussing the Facade pattern as created in PHP 5.
</p>
<blockquote>
In this case, you have a class that hides all the complexity required for serializing the mentioned objects, but there's also a group of classes that know nothing about the class that called them. As you can see, these classes are only responsible for performing the serialization/unserialization sequence on several objects and nothing else. Period.
</blockquote>
<p>
The Facade pattern is best seen as an interface between the real meat of the application and the part that displays the results. It provides a buffer between the two to make it easier for the output class to call. They create a <a href="http://www.devshed.com/c/a/PHP/Introducing-the-Facade-Pattern-in-PHP-5/2/">basic implementation</a> of this and show how to use compression and provide all the code you'll need to get it working.
</p>]]></description>
      <pubDate>Tue, 16 Jan 2007 11:19:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Diniki.net: PHP Design Patterns]]></title>
      <guid>http://www.phpdeveloper.org/news/5866</guid>
      <link>http://www.phpdeveloper.org/news/5866</link>
      <description><![CDATA[<p>
Patterns in PHP are becoming more and more popular, and sites like <a href=" http://dikini.net/php_design_patterns">this one</a> are doing well to provide summaries of each with code examples to help clarify.
</p>
<blockquote>
<p>
Following my petty wingeing about the design patterns in php on the web I have to bite the bullet and do something about it. So here it comes a collection of design pattern examples, some from the GOF book, some collected from around the net, some (maybe) I have discovered.
</p>
<p>
The intent of these pages is to show the shapes of the patterns not a fully fledged implementation. In real life probably a combination of patterns will be employed. Everyone has their own favourites following their political, religious and style differences.
</p>
</blockquote>
<p>
He <a href="http://dikini.net/php_design_patterns">admits that the pages</a> are a work in progress and aren't complete, but they're a start to share his studies with the world. His list of patterns so far includes:
<ul>
<li><a href="http://dikini.net/facade">Facade</a>
<li><a href="http://dikini.net/hooks">Hooks</a>
<li><a href="http://dikini.net/protocol_method">Protocol Method</a>
<li><a href="http://dikini.net/singleton">Singleton</a>
</ul>
with more to come. All of his examples under each pattern are written in PHP.
</p>]]></description>
      <pubDate>Tue, 25 Jul 2006 06:08:07 -0500</pubDate>
    </item>
  </channel>
</rss>
