<?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>Wed, 19 Jun 2013 05:20:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Introduction to the Law of Demeter]]></title>
      <guid>http://www.phpdeveloper.org/news/18662</guid>
      <link>http://www.phpdeveloper.org/news/18662</link>
      <description><![CDATA[<p>
On PHPMaster.com today they've posted <a href="http://phpmaster.com/introduction-to-the-law-of-demeter/">an introduction to the Law of Demeter</a>, an idea that promotes loose coupling between objects that each do their own work. This makes it simpler to make pieces interchangeable and more able to focus on their job.
</p>
<blockquote>
With so many heuristics stating how and why software systems should cling to a specific approach, it's pretty disappointing not seeing a broader implementation of them in the world of PHP. For example, the Law of Demeter is probably one of the most underrated in the language's realm. Effectively, the law's "talk to your closest friends" mantra still seems to be in a pretty immature state in PHP, something that contributes to rot in the overall quality of several object-oriented code bases. 
</blockquote>
<p>
They look at how keeping the functionality of each object focused and not "knowing too much" is a good thing and include some examples of working with a service locator, serializer and file storage classes.
</p>]]></description>
      <pubDate>Fri, 26 Oct 2012 12:13:35 -0500</pubDate>
    </item>
  </channel>
</rss>
