<?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, 19 May 2013 13:27:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jacob Santos's Blog: Don't Advocate Inner Classes]]></title>
      <guid>http://www.phpdeveloper.org/news/6009</guid>
      <link>http://www.phpdeveloper.org/news/6009</link>
      <description><![CDATA[<p>
<I>Jacob Santos</i> talks in <a href="http://www.santosj.name/php/dont-advocate-subclasses/">this new blog post</a> about something that, if added to PHP, just might be more trouble than it's worth - inner classes.
</p>
<blockquote>
<p>
Inner Classes are contained in parent classes and offer a sort of namespace mechanism for the public and open private class data transfer for private subclasses.
</p>
<p>
The functionality is already available in other languages, but the question is whether it is needed in PHP. The short answer is no. With PHP execution model, it would further slow down and bloat PHP compilation.
</p>
</blockquote>
<p>
He <a href="http://www.santosj.name/php/dont-advocate-subclasses/">demonstrates their purpose</a> with some simple examples but also gives the reasons why it would be a bad thing to try to include them, including the better choice of namespaces over inner classes.
</p>]]></description>
      <pubDate>Fri, 11 Aug 2006 07:38:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Vidyut Luther's Blog: PHP Namespaces - Working with external teams and possibly frameworks]]></title>
      <guid>http://www.phpdeveloper.org/news/4914</guid>
      <link>http://www.phpdeveloper.org/news/4914</link>
      <description><![CDATA[<i>Vidyut Luther</i> has posted <a href="http://www.phpcult.com/archives/45-PHP-Namespaces-Working-with-external-teams-and-possibly-frameworks..html">a new item</a> on his blog today that presents a situation he's been given concerning namespaces.
<p>
<quote>
<i>
I've run into an issue, or rather a friend of mine has. He asked me for advice, I gave it to him, but I'm curious how others would do this. The problem is this:
<p>
Team A, has been working on some code for a few months, Team A has a class called "SomeClass". Team B, is an "outsourced" team, who is writing a SOAP interface to Team A's code. Somehow, due to whatever reasons, Team A and Team B developers didn't talk.
<p>
Team B also created a class and called it "SomeClass". These classes are in files called  "Aclass.class.php"  and  "Bclass.class.php" . There are some files, that include both files.. obviously, you end up with a "cannot redeclare class" fatal error. 
</i>
</quote>
<p>
<i>Vidyut</i>'s <a href="http://www.phpcult.com/archives/45-PHP-Namespaces-Working-with-external-teams-and-possibly-frameworks..html">suggestion</a> was to just to change the class names. Unfortunately, this might not work if there is no communication between the two parties - they cannot come to a compromise on the naming.
<p>
He question to the community is "How do you handle an issue of single namespace, or rather no namespace ?"]]></description>
      <pubDate>Wed, 01 Mar 2006 07:04:27 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Codewalkers.com: Namespaces in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/4436</guid>
      <link>http://www.phpdeveloper.org/news/4436</link>
      <description><![CDATA[On <a href="http://codewalkers.com/">Codewalkers.com</a> today from <i>Matt</i>, there's a new post with a look at the talk that's been flying around about namespaces in PHP.
<p>
<quote>
<i>
It has come up many times in the past and it is now squarely on the table again - Namespaces in PHP. If you are interested in seeing this feature come to light, you might be interested to check out <a href="http://www.phpnamespaces.org/wiki/">php:namespaces</a>.
<p>
Namespaces are on the discussion table for PHP6. Why not for a version 5.2? If you feel that Namespaces should be included in PHP and included sooner rather than later, sign the <a href="http://www.petitiononline.com/phpns/petition.html">PHP Namespaces Petition</a>.
</i>
</quote>
<p>
With the patch that's already been developed by <i>Jessie Hernandez</i>, namespaces in 5.2 is less of a fantasy that one might think...]]></description>
      <pubDate>Mon, 05 Dec 2005 07:22:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Stocker's Blog: PHP is (most presumably) getting namespaces]]></title>
      <guid>http://www.phpdeveloper.org/news/4393</guid>
      <link>http://www.phpdeveloper.org/news/4393</link>
      <description><![CDATA[According to <a href="http://blog.bitflux.ch/archive/2005/11/29/php-is-most-presumably-getting-namespaces.html">this new post</a> from <i>Christian Stocker</i> today, PHP is "(most presumably) getting namespaces".
<p>
<quote>
<i>
If you're not subscribed on the internals mailinglist of PHP, you may have missed a (most of the time very ridiculous) discussion about namespaces in PHP. The important part of the whole discussion is, that it looks like PHP 6 is getting namespaces. I don't care that much about namespaces, I prefix my classes anyway, but it's a nice to have certainly.
<p>
The annoying part of the discussion (with dozens of redundant posts) was about which namespace separator should be used. [...] Anyway, at the end it boils down to either :: or ::: or as separator, the double colons have some technical limitations, the backslash looks somehow strange.
</i>
</quote>
<p>
For those that aren't sure what "namespaces" refers to, think about this example: two PHP files both have the function read() in their classes. If you wanted to use things from both clases at the same time, it'd be impossible - one read() would override the other. Namespaces would allow you to separate them out, referring to them as seperate, distinct items in their own classes...]]></description>
      <pubDate>Tue, 29 Nov 2005 05:28:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sean Coates' Blog: +1 for Shalosh Nekudotayim (Namespaces in PHP)]]></title>
      <guid>http://www.phpdeveloper.org/news/4380</guid>
      <link>http://www.phpdeveloper.org/news/4380</link>
      <description><![CDATA[From <i>Sean Coates</i> today, there's <a href="http://blog.phpdoc.info/archives/27-+1-for-Shalosh-Nekudotayim.html">this post</a> with his follow-up to some of the issues that have arrised from the <a href="http://www.php.net/~derick/meeting-notes.html">PHP Developer's Meeting</a> notes posted the other day.
<p>
<quote>
<i>
If you don't read the <a href="http://beeblex.com/search.php?s=l:php.internals&o=1">PHP Internals</a> mailing list, you've probably missed most of the recent discussion on namespaces.
<p>
Since you're reading this entry, there's a good chance you've read one of the other posts about the <a href="http://www.php.net/~derick/meeting-notes.html">results of the 2005 PDM</a>, though. Of particular interest (especially given the recent Date class debacle) is the point on namespaces.
</i>
</quote>
<p>
He <a href="http://blog.phpdoc.info/archives/27-+1-for-Shalosh-Nekudotayim.html">mentions specifically</a> one topic causing a lot of discussion - the current suggestion for a namespace operator (the "\"), and, of course, the differing of opinions on either side...]]></description>
      <pubDate>Mon, 28 Nov 2005 05:46:11 -0600</pubDate>
    </item>
  </channel>
</rss>
