<?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>Mon, 20 May 2013 04:21:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: Refactoring away from spaghetti PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18265</guid>
      <link>http://www.phpdeveloper.org/news/18265</link>
      <description><![CDATA[<p>
In <a href="http://css.dzone.com/articles/refactoring-away-spaghetti-php">this new post</a> to DZone.com, <i>Giorgio Sironi</i> walks you through a few steps to consider when trying to refactor some of the spaghetti code out of your application.
</p>
<blockquote>
Sometimes you have to take a step back from discussions on coupling, cohesion, patterns and katas to give some training to the ones of us that have a procedural mindset. With this article I hope to provide some initial tips for the members of the PHP community that are ready to abandon the concept of the OneSingleProcedure(TM) to embrace the object world.
</blockquote>
<p>
He includes a common procedural example with all of the logic in one file and talks about how the idea of "decomposition" can help to break it up into objects with their own roles and responsibilities. 
</p>]]></description>
      <pubDate>Tue, 24 Jul 2012 10:29:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Timothy Boronczyk's Blog: Spaghetti Code Considered Harmful]]></title>
      <guid>http://www.phpdeveloper.org/news/16367</guid>
      <link>http://www.phpdeveloper.org/news/16367</link>
      <description><![CDATA[<p>
<i>Timothy Boronczyk</i> has a new post to his blog proposing something that any veteran developer already knows - <a href="http://zaemis.blogspot.com/2011/05/spaghetti-code-considered-harmful.html">"spaghetti code" is harmful</a> to the health of your application. He's done a little research, though, and tried to explore what this "bad code" really is.
</p>
<blockquote>
The phrase "spaghetti code" is an all-too-common pejorative we programmers use to describe horrible code, whether it's difficult to understand, poorly organized, or just plain long-winded. And there-in lays the problem. What really constitutes spaghetti code is subjective; I've yet to hear a concrete definition or standard metric that measures it. [...] Everyone has his or her own opinion as to what aspects would make them label it spaghetti.
</blockquote>
<p>
Suggested definitions include: quickly written, non-standardized, beginner-level quality and any code that makes use of "goto". He suggests that applying the term to someone's code is less about the real quality of the code and more about social aspects of not wanting to upset the other developer over its quality.
</p>
<blockquote>
But besides negatively affecting others, our complaining about spaghetti code hurts ourselves too. It's easier to motivate ourselves when tasked with fixing a bug when we're not dreading having to trudge through spaghetti. When we label code as spaghetti code, we are actually creating roadblocks that hamper ourselves and artificially increase the difficulty of the task at hand.
</blockquote>]]></description>
      <pubDate>Fri, 20 May 2011 10:50:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPImpact Blog: PHP: Spaghetti alla Bolognese]]></title>
      <guid>http://www.phpdeveloper.org/news/11710</guid>
      <link>http://www.phpdeveloper.org/news/11710</link>
      <description><![CDATA[<p>
On the PHP::Impact blog <i>Federico Cargnelutti</i> has <a href="http://phpimpact.wordpress.com/2009/01/08/php-spaghetti-alla-bolognese/">expressed his opinion</a> about the inclusion of the "GOTO" statement into future builds of PHP:
</p>
<blockquote>
The <a href="http://upload.wikimedia.org/wikipedia/en/8/85/AtariBasicExample.png">GOTO</a> statement has been the target of much continued criticism and debate, with the primary negative claim being that use of GOTO results in unreadable and generally unmaintainable spaghetti code. [...] Well, great news. The GOTO statement has just been added to the PHP language and it's now in the hands of experienced programmers and inexperienced Web developers.
</blockquote>
<p>
He references a quote from <a href="http://www.procata.com/blog/archives/2004/07/29/goto-in-php/">Jeff Moore</a> stating his dissatisfaction with the inclusion of it too. Comments on the post, however, correct <i>Federico</i> on how the "GOTO" in PHP will work - not quite as global as he'd thought.
</p>]]></description>
      <pubDate>Fri, 09 Jan 2009 11:17:05 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPWomen.org: Best Practices Thread]]></title>
      <guid>http://www.phpdeveloper.org/news/7459</guid>
      <link>http://www.phpdeveloper.org/news/7459</link>
      <description><![CDATA[<p>
The ladies over on PHPWomen.org have <a href="http://www.phpwomen.org/wordpress/2007/03/19/best-practices-thread/">opened up</a> a new area in their forums - a place to discuss best practices in PHP.
</p>
<blockquote>
Just a quick note that the <a href="http://www.phpwomen.org/forum/index.php?t=thread&frm_id=20&S=b6030b6f4310d726b3ce1074411fc2c6">Best Practices forum</a> is now open and already has a couple of fast and easy articles in it for your viewing pleasure. For any aspiring writers - there is also a <a href="http://www.phpwomen.org/forum/index.php?t=msg&th=210&start=0&S=1f30b7f38a61ea965fc7f597a3827414">list of future articles</a> if you want to try your hand at it.
</blockquote>
<p>
There's already a few <a href="http://www.phpwomen.org/forum/index.php?t=thread&frm_id=20&S=b6030b6f4310d726b3ce1074411fc2c6">articles posted</a> including ones discussing PHPDocumentor, spaghetti code, and variable abuse.
</p>]]></description>
      <pubDate>Tue, 20 Mar 2007 08:57:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPEverywhere: Is PHP4 the new perl?]]></title>
      <guid>http://www.phpdeveloper.org/news/4866</guid>
      <link>http://www.phpdeveloper.org/news/4866</link>
      <description><![CDATA[From PHPEverywhere today, there's <a href="http://phplens.com/phpeverywhere/?q=node/view/226">a new post</a> from <i>John Lim</i> that asks the question, "Is PHP4 the new Perl?"
<p>
<quote>
<i>
<a href="http://www.tbray.org/ongoing/When/200x/2006/02/17/PHP">Tim Bray</a>, one of authors of XML, voices concern about PHP: "So here's my problem, based on my limited experience with PHP (deploying a couple of free apps to do this and that, and debugging a site for a non-technical friend here and there): all the PHP code I've seen in that experience has been messy, unmaintainable crap. Spaghetti SQL wrapped in spaghetti PHP wrapped in spaghetti HTML, replicated in slightly-varying form in dozens of places.
<p>
But in the big picture, it feels vulnerable to me."
</i>
</quote>
<p>
<a href="http://phplens.com/phpeverywhere/?q=node/view/226">John argues</a> that it's not the language's fault if the code that's written is bad (more coders need <a href="http://phplens.com/phpeverywhere/node/view/86">this</a>). He also suggests that maybe PHP4 is perl for the web - simply because of the one of the reasons it's popular - it's potential for abuse from badly written code.]]></description>
      <pubDate>Mon, 20 Feb 2006 07:23:27 -0600</pubDate>
    </item>
  </channel>
</rss>
