<?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>Fri, 08 Aug 2008 15:53:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Thompson's Blog: Switch vs. If]]></title>
      <guid>http://www.phpdeveloper.org/news/9549</guid>
      <link>http://www.phpdeveloper.org/news/9549</link>
      <description><![CDATA[<p>
<i>Rob Thompson</i> has <a href="http://rob.sun3.org/php-code/switch-vs-if/">posted about</a> some simple benchmarking he did comparing the speed of a series of "if" statements versus one "switch" with multiple cases.
</p>
<blockquote>
I got curious about which is actually more efficient at matching a random integer with a set of conditionals. So, I setup a script to create a set of large scripts to test the speed of these different constructs. Using the 'time' command, I measured the speed at which the condition could match a random number.
</blockquote>
<p>
His results found that the switch statement is generally more than 2 times as fast at matching a simple integer. His tests, however, didn't go through much more than this simple test. It'd be interesting to see what it would do with something more complex (like longer strings or handling the result of an evaluation inside the definition of the switch().
</p>]]></description>
      <pubDate>Fri, 01 Feb 2008 14:28:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kore Nordmann's Blog: Evil bugs in your code]]></title>
      <guid>http://www.phpdeveloper.org/news/9171</guid>
      <link>http://www.phpdeveloper.org/news/9171</link>
      <description><![CDATA[<p>
<i>Kore Nordmann</i> has <a href="http://kore-nordmann.de/blog/evil_code_bugs.html">made a quick post</a> to his blog about some "evil bugs" he's seen reoccurring in the code he writes and wanted to point them out so other developers might learn from them.
</p>
<blockquote>
Those are 4 typical errors I introduced in my code, and spend some time debugging it, because I found them really hard to spot. Luckily, once I spotted the actual bug, I find it a lot easier the next time the typo occurs. Therefore I want to share those, so that I may save you some minutes of your life hunting stupid bugs.
</blockquote>
<p>
His three contributions concern a "missing if", the addition of a random semicolon, operator precedence and a for loop that refuses to work. Others have contributed to the comments on the post as well.
</p>]]></description>
      <pubDate>Tue, 04 Dec 2007 11:52:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: PHP Statements and Beginning Loops]]></title>
      <guid>http://www.phpdeveloper.org/news/8969</guid>
      <link>http://www.phpdeveloper.org/news/8969</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/PHP-Statements-and-Beginning-Loops/">latest part</a> of their introduction to PHP series, this time focusing on one of the more useful features of the language - conditionals and loops.
</p>
<blockquote>
We discussed statements briefly in our last article and even got a sneak peek of an IF-statement. Sure I mean, the image was blurry, and the moment it saw us it ran off into the forest. But we saw it. Honest. So in this article, we're going to take a much closer look at PHP statements and even start learning about loops.
</blockquote>
<p>
They cover if statements (as mentioned) as well as introduce you to its companions, else and else if. The finish off the article with a brief look at one of the simpler loops, the <a href="http://www.devshed.com/c/a/PHP/PHP-Statements-and-Beginning-Loops/4/">for loop</a>.
</p>]]></description>
      <pubDate>Mon, 05 Nov 2007 09:34:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Debugging and Performance]]></title>
      <guid>http://www.phpdeveloper.org/news/6761</guid>
      <link>http://www.phpdeveloper.org/news/6761</link>
      <description><![CDATA[<p>
In another part of their series of excerpts from the Zend PHP Certification Guide (from Zend), DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Debugging-and-Performance/">this article</a> talking about debugging and performance issues and methods.
</p>
<blockquote>
Making mistakes is human, and so is fixing them. In your day-to-day programming adventures, it's inevitable to introduce bugs in your PHP code, especially when you're writing very complex applications with tens of thousands of lines of code spread across tens of files.
</blockquote>
<p>
In <a href="http://www.devshed.com/c/a/PHP/Debugging-and-Performance/">this article</a> they look at things like flattening if statements, spplitting single commands across multiple lines, and the difference between =, ==, and ===.
</p>]]></description>
      <pubDate>Thu, 23 Nov 2006 13:42:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Batchelder's Blog: Writing Your Server-Side Ajax Handler]]></title>
      <guid>http://www.phpdeveloper.org/news/5038</guid>
      <link>http://www.phpdeveloper.org/news/5038</link>
      <description><![CDATA[<i>Matthew Batchelder</i> describes in <a href="http://borkweb.com/story/a-simple-server-side-ajax-handler">his latest post</a> about the other half of an equation he demonstrated in <a href="http://borkweb.com/story/ajax-templating-and-the-separation-of-layout-and-logic">this previous post</a> - the creation of an Ajax handler.
<p>
<quote>
<i>
In my recent post on '<a href="http://borkweb.com/story/ajax-templating-and-the-separation-of-layout-and-logic">Ajax; Templating; and the Separation of Layout and Logic</a>,' I refer to an Ajax Handler that sits server side to handle Ajax calls. Some elaboration is in order.
<p>
As I have <a href="http://borkweb.com/story/prototype-makes-javascript-painless">stated in the past</a>, I'm a huge fan of <a href="http://prototype.conio.net/">Prototype</a> AND I choose <a href="http://php.net/">PHP</a> as my language of choice...so my examples will be using both, but the idea is portable.
</i>
</quote>
<p>
His <a href="http://borkweb.com/story/a-simple-server-side-ajax-handler">example</a> is a very basic one, pulling in the data from the $_GET values and, with a combination of dynamic function calls and the use of eval(), provides a simple "framework" to handle your Ajax calls. There are two versions of the same thing - one using if statements and the other a switch and various cases.]]></description>
      <pubDate>Thu, 23 Mar 2006 12:37:17 -0600</pubDate>
    </item>
  </channel>
</rss>
