<?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 13:09:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Soledad Penades' Blog: Signs your PHP needs refactoring]]></title>
      <guid>http://www.phpdeveloper.org/news/7980</guid>
      <link>http://www.phpdeveloper.org/news/7980</link>
      <description><![CDATA[<p>
As <a href="http://feeds.feedburner.com/~r/funkablog/~3/122396798/">mentioned by</a> <i>Ed Finkler</i>, there's a list of <a href="http://www.soledadpenades.com/2007/06/05/signs-your-php-needs-refactoring/">signs your PHP needs refactoring</a> from <i>Soledad Penades</i>.
</p>
<blockquote>
<p>
I have had to go through a php application recently which has given me more than one headache and has required me to use all my possible patience. While working with it, I thought This is good material for an article, so that nobody else does the same in the future, and nobody else will need to experience the same displeasure as I have had to.
</p>
<p>
So here are the signs your PHP application needs a serious refactoring, right now
</p>
</blockquote>
<p>
Included in <a href="http://www.soledadpenades.com/2007/06/05/signs-your-php-needs-refactoring/">the list</a> are things like:
</p>
<ul>
<li>Uses global variables
<li>Everything's an array
<li>The neverending switch
<li>Interface inconsistency
</ul>
<p>
It hits on one of the thing that bugs me too, the problem of "Brackets galore" - so many subarrays that you have to resort to three or more sets of bracketed keys to get to the value you want. It's bad enough trying to follow someone else's code without having to "trace down" an array to figure out which of the values they're talking about.
</p>]]></description>
      <pubDate>Tue, 05 Jun 2007 16:26:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Inside Open Source: Possible addition to array syntax in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7216</guid>
      <link>http://www.phpdeveloper.org/news/7216</link>
      <description><![CDATA[<p>
According to <a href="http://opensource.apress.com/article/232/possible-addition-to-array-syntax-in-php">this new post</a> on the Inside Open Source blog from APress, <i>Andi Gutmas</i> has made a <a href="http://marc.theaimsgroup.com/?l=php-dev&m=117057393530217&w=2"suggestion</a> for a new syntax to be added to the existing array functionality in PHP.
</p>
<p>
The suggestion involves the use of brackets ([ and ]) to declare the initial array, similar to the way other languages (even Javascript) work.
</p>
<blockquote>
The current split among the big players in PHP development looks to be about 50/50. The general thought of the opposition is that it is an unnecessary change that will only lead to confusion in the future. Why create two ways of doing the same thing?
</blockquote>]]></description>
      <pubDate>Mon, 05 Feb 2007 07:34:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Using GtkSourceview to build a php editor with syntax highlighting]]></title>
      <guid>http://www.phpdeveloper.org/news/6930</guid>
      <link>http://www.phpdeveloper.org/news/6930</link>
      <description><![CDATA[<p>
There's a <a href="http://www.php-gtk.eu/code-snippets/extending-gtksourceview-widget">new tutorial</a> posted on the PHP-GTK Community site today - a quick one showing how to use GtkSourceview to create a simple PHP editor with syntax highlighting.
</p>
<blockquote>
This widget is nearly usable as a real php-gtk IDE. It extends GtkSourceView widget and internally manages both a text buffer and language object classes.
</blockquote>
<p>
They <a href="http://www.php-gtk.eu/code-snippets/extending-gtksourceview-widget">provide the code</a>, but not too much in the way of explanation for it. Thankfully, most of it is pretty straight-forward. There are a few things that the script has to manage to make the it work - a text buffer for the data, a viewer (window), and the syntax highlighting component. For the view, there are a few handy functions already built in so you won't have to create them - undos, the syntax highlighting, line numbering, markers, and bracket highlighting.
</p>]]></description>
      <pubDate>Tue, 19 Dec 2006 08:34:00 -0600</pubDate>
    </item>
  </channel>
</rss>
