<?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>Sat, 25 May 2013 12:41:38 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Oscar Merida: Smelly PHP code]]></title>
      <guid>http://www.phpdeveloper.org/news/18720</guid>
      <link>http://www.phpdeveloper.org/news/18720</link>
      <description><![CDATA[<p>
<i>Oscar Merida</i> has written up a <a href="http://oscarm.org/2012/11/smelly-php-code">sort of continuation</a> to <a href="http://phpdeveloper.org/news/18704">this series</a> from <i>Adam Culp</i> about clean code, one that shares more tips on knowing when to refctor.
</p>
<blockquote>
Adam Culp posted the 3rd article in his Clean Development Series this week, <a href="http://www.geekyboy.com/archives/494">Dirty Code (how to spot/smell it)</a>. When you read it, you should keep in mind that he is pointing out practices which correlate with poorly written code not prescribing a list of things to avoid. It's a good list of things to look for and engendered quite a discussion in our internal <a href="http://musketeers.me/">Musketeers</a> IRC.
</blockquote>
<p>
His suggestions include things like "Comments are valuable", "Using switch statements" and a few other smaller ones involving error suppression, globals and prepared statements in database usage.
</p>]]></description>
      <pubDate>Fri, 09 Nov 2012 09:21:57 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Adam Culp: Clean Development Series (Parts 1, 2 & 3)]]></title>
      <guid>http://www.phpdeveloper.org/news/18704</guid>
      <link>http://www.phpdeveloper.org/news/18704</link>
      <description><![CDATA[<p>
<i>Adam Culp</i> has posted a three part series to his blog with some guidance about how to create "clean code" in your application development:
</p>
<blockquote>
Whether we're experienced developers or newcomers, we've all seen code that could/should have been done better.  Many times it's even code we ourselves wrote and revisited later for one reason or another.  I, for one, have seen my share of code written by a "past me" and wondered what on earth I was thinking when I wrote that.  Of course there has also been times when I was hired to fix another developers code, and it can be scary also.
</blockquote>
<p>There's three posts in the series:</p>
<ul>
<li><a href="http://www.geekyboy.com/archives/459">Part 1, Dirty Code (cause/effect)</a>
<li><a href="http://www.geekyboy.com/archives/479">Part 2, Dirty Code (why we do it)</a>
<li><a href="http://www.geekyboy.com/archives/494">Part 3, Dirty Code (how to spot/smell it)</a>
</ul>]]></description>
      <pubDate>Tue, 06 Nov 2012 11:26:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matt Frost's Blog: Prevent Overcomplication]]></title>
      <guid>http://www.phpdeveloper.org/news/18193</guid>
      <link>http://www.phpdeveloper.org/news/18193</link>
      <description><![CDATA[<p>
<i>Matt Frost</i> has <a href="http://shortwhitebaldguy.com/blog/2012/07/prevent-overcomplication">a new post</a> to his blog talking about reducing complexity and preventing overcomplication in your code and application structure.
</p>
<blockquote>
We've all come across code that's written so craftily that it takes us some time to figure out what's actually going on in that block of code.  We've never written things like that ourselves of course....seriously though, if you're collaborating, not doing things in the simplest terms will create an issue when other people start to look at your code.  There is something about us; when we have an opportunity to show off how smart we are; we really try to go for it.  The point is that it's not helping anyone and crafty code !== good code.
</blockquote>
<p>
He makes a few recommendations about how to keep things simple in the various aspects of your development:
</p>
<ul>
<li>Know your tools
<li>Know what you're doing
<li>Check your smells
<li>Ask "what value does this add?"
</ul>
<blockquote>
By simplifying things, you give others a chance to look at what you are doing and help you understand what you did right and what you can do to improve that section. 
</blockquote>]]></description>
      <pubDate>Fri, 06 Jul 2012 12:56:13 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Metapundit.net: Code Smells II]]></title>
      <guid>http://www.phpdeveloper.org/news/6582</guid>
      <link>http://www.phpdeveloper.org/news/6582</link>
      <description><![CDATA[<p>
Following up from the <a href="http://metapundit.net/sections/blog/code_smells_and_design_principles">previous article</a> on the Metapundit.net blog, there's <a href="http://metapundit.net/sections/blog/148">part two</a> of the "Code Smells" series - a look at bad things to do in your code (to make it "smell").
</p>
<blockquote>
This (and any subsequent posts in the series) will be more limited in scope - a single bad example and a corresponding solution.
</blockquote>
<p>
This time, <a href="http://metapundit.net/sections/blog/148">the spotlight</a> is on parameterised queries - inserting the variables directly into a SQL statement string versus filtering them or inserting them via a custom query() function. He points out that there's no need to create this kind of filtering/database handling class on your own, though - there's already been one created by the fine folks of PEAR (using the <a href="http://pear.php.net/manual/en/package.database.db.db-common.autoexecute.php">autoExecute function</a).
</p>]]></description>
      <pubDate>Thu, 26 Oct 2006 09:14:00 -0500</pubDate>
    </item>
  </channel>
</rss>
