<?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>Sun, 19 May 2013 18:11:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lukas Smith's Blog: Why bother?]]></title>
      <guid>http://www.phpdeveloper.org/news/17034</guid>
      <link>http://www.phpdeveloper.org/news/17034</link>
      <description><![CDATA[<p>
<i>Lukas Smith</i> has put together a recent post to his blog with <a href="http://pooteeweet.org/blog/0/2014#m2014">some thoughts on standardization</a> of interfaces in PHP applications to help improve code quality and interoperability.
</p>
<blockquote>
In my previous blog post I was brainstorming the possibility of collaboration between various frameworks to define a set of common interfaces. But I kind of failed to explain why this would be useful. Herman's "rebuttal" made this omission on my part quite clear. [...] That being said the open questions left in my previous blog might still prevent this idea to take off, even if I manage to convince the general community that the above mentioned negative effects are not such a significant concern.
</blockquote>
<p>
He talks first about some of the things he sees PHP as having done right (citing its popularity) and contrasts it to Java based on the standards they impose. He goes on to mention how interfaces, introduced early enough in the process, can help with the "best tool for the job" idea (with an example involving Symfony2, Zend Framework and Doctrine).
</p>]]></description>
      <pubDate>Tue, 25 Oct 2011 08:33:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: User-defined Interfaces in PHP 5 - Building a Page Generator]]></title>
      <guid>http://www.phpdeveloper.org/news/4640</guid>
      <link>http://www.phpdeveloper.org/news/4640</link>
      <description><![CDATA[DevShed has posted thier <a href="http://www.devshed.com/c/a/PHP/Userdefined-Interfaces-in-PHP-5-Building-a-Page-Generator/">final part</a> in the "User-defined Interfaces in PHP" series today - "Building a Page Generator".
<p>
<quote>
<i>
In this final part of the series on user-defined interfaces in PHP 5, Alejandro puts all of the classes created in the previous articles together to work as a page generator. This allows complex page generation to be translated into a more flexible process through an object-based solution.
<p>
With reference to this final part of the series, I shall put all of the classes to work together into a full-featured example, by including the already familiar (X)HTML widgets in conjunction with the pair of MySQL-processing classes, in order to integrate both types of objects into a page generator class. As a result, complex web page generation can be translated into a more flexible process tackled through an object-based solution.
</i>
</quote>
<p>
Combining the efforts from the two <a href="http://www.phpdeveloper.org/news/4565">previous</a> <a href="http://www.phpdeveloper.org/news/4596">articles</a> in the series, they build a class that takes in the data it needs and builds out the page accordingly. The PageGenerator class does all of the work for you, making object-based pages a simple process...]]></description>
      <pubDate>Tue, 10 Jan 2006 07:29:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Andi Gutmans' Blog:  Fluent Interfaces]]></title>
      <guid>http://www.phpdeveloper.org/news/4585</guid>
      <link>http://www.phpdeveloper.org/news/4585</link>
      <description><![CDATA[With so many talking about fluent interfaces today, <i>Andi Gutmans</i> has tossed his hat into the ring with <a href="http://andigutmans.blogspot.com/2005/12/fluent-interfaces.html">this new blog post</a> with some of his thoughts.
<p>
<quote>
<i>
I'd like to add to <a href="http://paul-m-jones.com/blog/?p=188">Paul's</a> and <a href="http://www.mikenaberezny.com/archives/35">Mike's</a> posts regarding fluent interfaces.
<p>
I very much agree with them that this kind of method chaining allows to create very readable and intuitive interfaces. The million dollar question is when to actually use this kind of programming style.
<p>
Of course there are no definitive answers but I suggest to consider the following points: Use your intuition, If you don't have all of the data - reconsider using them, It really has to read well in your language (e.g. English), preferably as a complete sentence, and make sure that the base error handling it forces you to use is enough for your purposes.
</i>
</quote>
<p>
And, of course, he's <a href="http://andigutmans.blogspot.com/2005/12/fluent-interfaces.html">open to suggestions/comments</a> on the subject, as well as any proposals for guidelines that might need to be set out there...]]></description>
      <pubDate>Fri, 30 Dec 2005 07:21:53 -0600</pubDate>
    </item>
  </channel>
</rss>
