<?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>Sun, 06 Jul 2008 16:51:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Debuggable Blog: Programming Psychology - Return home early]]></title>
      <guid>http://www.phpdeveloper.org/news/10058</guid>
      <link>http://www.phpdeveloper.org/news/10058</link>
      <description><![CDATA[<i>Felix Geisendorfer</i> is taking an interesting approach to defining programming in <a href="http://www.debuggable.com/posts/return-home-early-a-programmers-mind:4811de9f-ae28-49c2-a7dc-2f154834cda3">this new post</a> to the Debuggable blog - he's coming at it more from the level of the perception the programmer has about writing good code.
</p>
<blockquote>
I believe understanding the patterns in your own thinking will by far make the biggest impact on how good you will get as a programmer. Forget design patterns, forget unit testing, forget all those functions you know. Important is to question why they exist and how they could be improved.
</blockquote>
<p>
He illustrates through <a href="http://www.debuggable.com/posts/return-home-early-a-programmers-mind:4811de9f-ae28-49c2-a7dc-2f154834cda3">a few examples</a> what he means. He describes one such thought method, the "return home early" process - basically, if something looks too complex for its own good, it probably is. He offers a different way of thinking about it too, a more visual way that can help simplify things even more by laying out the pieces and seeing where they all fit.
</p>]]></description>
      <pubDate>Mon, 28 Apr 2008 14:36:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Hasin Hayder's Blog: Unexpected return value from Facebook FQL.query via PHP REST Lib]]></title>
      <guid>http://www.phpdeveloper.org/news/9653</guid>
      <link>http://www.phpdeveloper.org/news/9653</link>
      <description><![CDATA[<p>
<i>Hasin Hayder</i> had been <a href="http://hasin.wordpress.com/2008/02/16/unexpected-return-value-from-facebook-fqlquery-via-php-rest-lib/">working with the Facebook API</a> and stumbled across a bug in an application they had created for the social networking site:
</p>
<blockquote>
The method which we used to count number of friends of a specific user who has added that application was returning 1 when there is no friend actually installed it.
</blockquote>
<p>
He gives the SQL query and the PHP code he was originally using to find out the number of users for the application. The problem came from the fact that the returning value wasn't an array - it was a string. The corrected code (that checks for array-ness) is also included.
</p>]]></description>
      <pubDate>Mon, 18 Feb 2008 12:06:00 -0600</pubDate>
    </item>
  </channel>
</rss>
