<?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, 21 Nov 2008 06:44:23 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Debuggable Blog: Programming Psychology II: Private methods ]]></title>
      <guid>http://www.phpdeveloper.org/news/10560</guid>
      <link>http://www.phpdeveloper.org/news/10560</link>
      <description><![CDATA[<p>
According to <i>Felix Geisendorfer</i>'s <a href="http://www.debuggable.com/posts/programming-psychology-ii-private-methods:481ed862-b0d8-4a0e-9247-165c4834cda3">newest post</a> on the Debuggable blog, he thinks that "private and protected methods and properties are one of the most stupid concepts of OOP."
</p>
<blockquote>
This is a thought I first shared at <a href="http://debuggable.com/posts/cakefest-orlando-2008-summary:480f4dd6-6404-4774-a771-4e8fcbdd56cb">CakeFest Orlando</a> this year, but could not explain properly at the time.
</blockquote>
<p>
He illustrates with an example of a protected "balance" variable in a BankAccount class. Sure, it's marked as private but less skilled programmers might not use it that way. He recommends a method without the getters/setters to help make the usage of the variable a bit simpler. He also suggests that using protected/private scoping helps to promote "crappy code" - using them to provide a sort of protection for code that you either don't want getting used or hiding it away so the API can't get at it.
</p>]]></description>
      <pubDate>Tue, 08 Jul 2008 08:44:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Typical Programmer Blog: Doing it wrong: getters and setters]]></title>
      <guid>http://www.phpdeveloper.org/news/10420</guid>
      <link>http://www.phpdeveloper.org/news/10420</link>
      <description><![CDATA[<p>
According to <a href="http://typicalprogrammer.com/?p=23">this new post</a> on the Typical Programmer blog, using getters and setters in your scripts only adds in a bit of unnecessary coupling and complexity to your scripts that you just don't need.
</p>
<blockquote>
Today most of the popular programming languages support objects, limiting scope, modularity, passing by value, and sophisticated built-in types. There should be no reason to deliberately expose an object's data to the rest of the code because the language can enforce encapsulation and data hiding.
</blockquote>
<p>
While not specific to PHP, <a href="http://typicalprogrammer.com/?p=23">the post</a> does recommend against them because of one simple reason common to all languages that make them possible - they "break the encapsulation OOP offers". For them, they're like a cheat to get around bad coding practices and are not needed to make a successful application work.
</p>]]></description>
      <pubDate>Mon, 16 Jun 2008 11:19:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alan Knowles' Blog: Licence to release PHP code?]]></title>
      <guid>http://www.phpdeveloper.org/news/9878</guid>
      <link>http://www.phpdeveloper.org/news/9878</link>
      <description><![CDATA[<p>
A little while back, <i>Alan Knowles</i> <a href="http://www.akbkhome.com/blog.php/View/159/Licence_to_release_PHP_code.html">wondered something</a> that I'm sure has crosses the mind of every PHP developer out there, especially when they came across a particularly bad chunk of code - some people should need to apply for a license before releasing their PHP code out into the wild.
</p> 
<blockquote>
Unlike most of the reviews you get, I was specifically looking at code quality [of the CMSs]. not fuzzy does it look nice!
</blockquote>
<p>
He looks at a whole list of them including: Tanslucis, Siteman, Pivot, jaf-cms, Guppy, Doop and CutePHP. Unfortunately, most of the news is bad - between badly structured code and mixes of HTML and PHP, there was almost nothing good in any of them.
</p>]]></description>
      <pubDate>Fri, 28 Mar 2008 11:10:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Bray's Blog: 2008 Prediction 4: PHP Problems]]></title>
      <guid>http://www.phpdeveloper.org/news/9673</guid>
      <link>http://www.phpdeveloper.org/news/9673</link>
      <description><![CDATA[<p>
As <i>Cal Evans</i> and others in the PHP community have pointed out, there's a <a href="http://www.tbray.org/ongoing/When/200x/2008/01/04/Predictions-PHP">post on Tim Bray's blog</a> (of Sun Microsystems) with his prediction for PHP for the upcoming year:
</p>
<blockquote>
The short version: PHP will remain popular but its growth will slow, as people get nervous about its maintainability and security stories.
</blockquote>
<p>
He does mention the two different stances of this statement - the good side (with low entry level, good applications and speed) and the stance he seems to believe in more - that there are just things about PHP and how its handled that could cause major issues down the line.
</p>
<p>
Be sure to check out <a href="http://www.tbray.org/ongoing/When/200x/2008/01/04/Predictions-PHP">the comments</a> for community views on both sides of the story too.
</p>]]></description>
      <pubDate>Wed, 20 Feb 2008 14:37:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Laura Thomson's Blog: Do all frameworks really suck?]]></title>
      <guid>http://www.phpdeveloper.org/news/8378</guid>
      <link>http://www.phpdeveloper.org/news/8378</link>
      <description><![CDATA[<p>
In light of the <a href="http://www.solarphp.com">massive</a> <a href="http://www.codeigniter.com">amounts</a> of <a href="http://framework.zend.com">PHP</a> <a href="http://www.symfony-project.com">frameworks</a> out there, <i>Laura Thomson</i> has posed the question "<a href="http://www.laurathomson.com/2007/07/do-all-framewor.html">Do all frameworks suck?</a>"
</p>
<blockquote>
Choosing a framework to implement your web app is a trade off like any other design decision.  Let's focus in on specifics and talk about what the trade off is that you make when you choose a framework.  Specifically, I'm talking about MVC frameworks in PHP.
</blockquote>
<p>
She <a href="http://www.laurathomson.com/2007/07/do-all-framewor.html">looks at both sides</a> mentioning the good (code organization, encourages secure coding) and the bad (MVC is defined differently by different people, "More Than One Way to Do It", code bloat). In the end, her recommendation is to look at what you're trying to accomplish and decide first if a framework is for you and your app and, of it is, select the right one for the job.
</p>]]></description>
      <pubDate>Thu, 02 Aug 2007 08:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Good and Bad PHP Code]]></title>
      <guid>http://www.phpdeveloper.org/news/7924</guid>
      <link>http://www.phpdeveloper.org/news/7924</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog today, <i>Kevin Yank</i> <a href="http://www.sitepoint.com/blogs/2007/05/25/good-and-bad-php-code/">shares his thoughts</a> in the form of a list for what makes for "good" and "bad" PHP code.
</p>
<blockquote>
When interviewing a PHP developer candidate for a job at SitePoint, there is one question that I almost always ask, because their answer tells me so much about the kind of programmer they are. Here's the question: "In your mind, what are the differences between good PHP code and bad PHP code?"
</blockquote>
<p>
Among the items on the list for the good side are things like: structure, consistency, security, and portability. He gives a bit of example code that shows the three levels of "goodness" in a script (using $_GET variables).
</p>]]></description>
      <pubDate>Mon, 28 May 2007 09:02:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ligaya Turmelle's Blog: NuSphere PHPEd review]]></title>
      <guid>http://www.phpdeveloper.org/news/6596</guid>
      <link>http://www.phpdeveloper.org/news/6596</link>
      <description><![CDATA[<p>
In her <a href="http://www.khankennels.com/blog/index.php/archives/2006/10/29/nusphere-phped-review/">new blog post</a> today, <i>Ligaya Turmelle</i> has a mini-review/listing of her look into the editor offered by NuSphere - PHPed.
</p>
<blockquote>
I am normally a vim user when I code but I decided to pop my head out of my cubicle and try something new on the editor front. So I decided to check out NuSphere.
</blockquote>
<p>
She <a href="http://www.khankennels.com/blog/index.php/archives/2006/10/29/nusphere-phped-review/">breaks it out</a> into the two lists - what she likes and what she doesn't like. Included in the positives list were things like an easy learning curve, built in CVS support, and its many customizable features. On the bad list, there were things like inconsistent syntax highlighting, irritation with "code insight" feature, and not having the option to use Firefox as the embedded browser.
</p>]]></description>
      <pubDate>Mon, 30 Oct 2006 11:37:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ryan Malesevich's Blog: Fight Spam Comments with Bad Behavior and Akismet]]></title>
      <guid>http://www.phpdeveloper.org/news/6214</guid>
      <link>http://www.phpdeveloper.org/news/6214</link>
      <description><![CDATA[<p>
<i>Ryan</i> <a href="http://ryanslife.net/2006/09/06/fight-spam-comments-with-bad-behavior-and-akismet/">points out</a> a handy tool to help keep even more spammers from making their way to your blogs and posting comments - <a href="http://www.homelandstupidity.us/software/bad-behavior/">Bad Behavior</a>.
</p>
<blockquote>
<p>
I love <a href="http://ryanslife.net/2006/07/14/wordpress-plugins-used-in-ryans-life/">Akismet</a> the spam filter for comments that is built into Wordpress. It's blocked 812 spam comments in a little under 2 months for me. I was content with it, but I grew tiresome that it would even get to my site. Akismet is great for blocking spams that are already to your blog, but there has to be something out there that would block the spammers from coming to your site in the first place.
</p>
<p>
Luckily there is something like that, it's called <a href="http://www.homelandstupidity.us/software/bad-behavior/">Bad Behavior</a>.
</p>
</blockquote>
<p>
Luckily, it's also made for Wordpress, so you can download and install directly with no fuss. <a href="http://ryanslife.net/2006/09/06/fight-spam-comments-with-bad-behavior-and-akismet/">He comments</a> that he's already seeing results with even more caught than Akismet was before.
</p>]]></description>
      <pubDate>Thu, 07 Sep 2006 07:16:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jacob Santos' Blog: Multitasking in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/6084</guid>
      <link>http://www.phpdeveloper.org/news/6084</link>
      <description><![CDATA[<p>
In his <a href="http://www.santosj.name/php/multitasking-in-php/">latest blog post</a>, <i>Jacob Santos</i> takes a look at a common request PHP developers hit after a while - is it possible to multitask processes/actions in php?
</p>
<blockquote>
<p>
The ability to run two or more commands in parallel is totally sexy, but the Web is a different playing field and it doesn't make complete sense.
</p>
<p>
PHP loses control, once the output is sent and the connection is closed. Multithreading would probably make sense in streaming, but PHP already handles that for you where it makes sense for the function. Furthermore, mulithreading has its purpose in applications that continue to run and not something that closes and cleans up everything after the last command is issued.
</p>
</blockquote>
<p>
He <a href="http://www.santosj.name/php/multitasking-in-php/">continues</a> talking more about what multitasking is, a more real life example, the goods, the bads, and some of the issues that can come along with it. Finally, he suggests a feature to be added to the core of PHP - an "internal multitasking mechanism" to help aid these kinds of processes.
</p>]]></description>
      <pubDate>Sat, 19 Aug 2006 15:23:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Ames' Blog: Upgrading from PHP4 to PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/5559</guid>
      <link>http://www.phpdeveloper.org/news/5559</link>
      <description><![CDATA[<p>
For those out there wanting to make the move from PHP4 up to PHP5, <i>Robert Ames</i> has posted <a href="http://www.robertames.com/blog.cgi/entries/php4-to-php5-update.html">a few things</a> to watch out for.
</p>
<quote>
<i>
So, I've spent some time upgrading the <a href="http://www.darwingames.com/">darwingames.com</a> codebase to be PHP5 compatible. For those considering the transition (and language designers who are considering an incompatible source version upgrade), I offer the following observations.
</i>
</quote>
<p>
He breaks it down into to categories - the good and the bad. Some of the items on either list include:
<ul>
<li>static methods (good)
<li>E_STRICT (bad)
<li>random passing by reference gone (good)
<li>replacing is_a() with instanceof (bad)
</ul>
</p>
<p>
He also offers some of <a href="http://www.robertames.com/blog.cgi/entries/php4-to-php5-update.html">his personal suggestions</a> for guidelines for future language updates.
</p>]]></description>
      <pubDate>Sun, 11 Jun 2006 13:34:24 -0500</pubDate>
    </item>
  </channel>
</rss>
