<?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 00:14:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Zend Developer Zone: Design Patterns I Hate]]></title>
      <guid>http://www.phpdeveloper.org/news/16354</guid>
      <link>http://www.phpdeveloper.org/news/16354</link>
      <description><![CDATA[<p>
On the Zend Developer Zone today there's a new post from <i>Keith Casey</i> about some of the <a href="http://devzone.zend.com/article/14938-Design-Patterns-I-Hate">design patterns he hates</a> - ones that are misused too often and have become more of a "worst practice" at times than others.
</p>
<blockquote>
To be clear, I think <a href="http://devzone.zend.com/article/14003-My-Favorite-Design-Patterns">Design Patterns have their place</a>. When used properly, they can make our lives easier and our code better. When they're misused - "<a href="http://en.wikipedia.org/wiki/Law_of_the_instrument">If the only tool you have is a hammer..</a>" - then they can become the bane of our existence. Unfortunately, some Design Patterns seem more susceptible to this than others. So maybe this is less "design patterns I hate" and more of "design patterns that have been abused beyond all sense of reason"... I'll let you decide.
</blockquote>
<p>
He has three of the most commonly misused design patterns in his list. Anyone who has looked into using patterns in their applications will recognize them:
</p>
<ul>
<li>Active Record
<li>Factory
<li>Singleton
</ul>
<p>
For each, he describes some of the bad implementations he's seen and notes that, while these are commonly abused, they can still be redeemed by being used appropriately.
</p>]]></description>
      <pubDate>Wed, 18 May 2011 10:18:21 -0500</pubDate>
    </item>
  </channel>
</rss>
