<?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, 04 Dec 2008 14:10:21 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Harry Roberts' Blog: Flexible PHP Interfaces]]></title>
      <guid>http://www.phpdeveloper.org/news/10392</guid>
      <link>http://www.phpdeveloper.org/news/10392</link>
      <description><![CDATA[<p>
In an effort to breathe as much life into an old bit of software he was having to update, <i>Harry Roberts</i> worked up a <a href="http://codeb.us/flexible-php-interfaces">list of things</a> that he sees can make things a bit more "programmer friendly" when it comes to using classes, methods and interfaces in your code.
</p>
<p>His list of four is:</p>
<ul>
<li>Doc Comments
<li>Flexible Parameters
<li>Use method Entry contracts
<li>Be Stateful and Refactor
</ul>
<p>
The "Doc Comments" is pretty obvious, but some of the others need a bit more explaining. Being flexible with your parameters is more about requiring the least from a developer, "entry contracts" being the restrictions to let the developer know what you're expecting and refactoring commonly used functionality into a easy, single point of contact.
</p>]]></description>
      <pubDate>Wed, 11 Jun 2008 13:40:10 -0500</pubDate>
    </item>
  </channel>
</rss>
