<?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>Tue, 18 Jun 2013 16:12:19 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: You don't need a service layer: Fat controllers are okay]]></title>
      <guid>http://www.phpdeveloper.org/news/16369</guid>
      <link>http://www.phpdeveloper.org/news/16369</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has a new post to his blog today about why, in your framework-based applications, it's <a href="http://codeutopia.net/blog/2011/05/22/you-dont-need-a-service-layer-fat-controllers-are-okay/">okay to have "fat controllers"</a> instead of a service layer.
</p>
<blockquote>
Here's a counterpoint to the currently popular view of "fat controllers are bad", and the current fad of everyone and their cousin implementing service layers: You don't need one. Fat controllers are okay too.
</blockquote>
<p>
He starts by explaining the "why you don't need a service layer" part, mentioning that keeping it in the controller keeps things simple and keeps your code from having to go through extra hoops just to work correctly. He also points out that, just because he recommends "fat controllers" doesn't mean he's advocating code reuse. In fact, just the opposite:
</p>
<blockquote>
It's fine if you code your things in the controllers, but there comes a point when you should stop that. The moment you realize you're duplicating your code, stop and refactor. This is one of the very basics of software engineering: Avoid duplication by creating functions and classes.
</blockquote>]]></description>
      <pubDate>Mon, 23 May 2011 08:42:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Lukas Smith's Blog: KISS my...]]></title>
      <guid>http://www.phpdeveloper.org/news/10381</guid>
      <link>http://www.phpdeveloper.org/news/10381</link>
      <description><![CDATA[<p>
<i>Lukas Smith</i> recently <a href="http://pooteeweet.org/blog/0/1151#m1151">posted about</a> issues he's been coming across with the "KISS" mentality (and code) that the Zend Framework implements, specifically for the Zend_Feed component.
</p>
<blockquote>
Now that I am actually using the Zend Framework on my first project, hitting bugs/limitations in Zend_Feed and therefore looking at the code, I must say I am seeing feature duplication with internal PHP features that does not quite fit in with the KISS principle.
</blockquote>
<p>
He points out a few things that illustrate his point - the use of Zend_Http_Client instead of a <a href="http://ch2.php.net/manual/en/function.stream-context-create.php">strea context</a>, passing XML contents into loadXML instead of just load. As a replacement, he's considered <a href="http://svn.ez.no/svn/ezcomponents/trunk/Feed/src/feed.php">a Feed component</a> from the eZ components system, but it hasn't been released (officially) yet. So, as an alternative, he's come up with <a href="http://pooteeweet.org/public/Zend_Feed.diff">a patch</a> to fix a few things in the Zend_Feed component to make it a bit more KISS-friendly.
</p>]]></description>
      <pubDate>Tue, 10 Jun 2008 12:53:58 -0500</pubDate>
    </item>
  </channel>
</rss>
