<?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>Tue, 21 May 2013 07:27:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Phil Sturgeon: PHP 6: Pissing in the Wind]]></title>
      <guid>http://www.phpdeveloper.org/news/19097</guid>
      <link>http://www.phpdeveloper.org/news/19097</link>
      <description><![CDATA[<p>
With some of the recent talk about the consistency of naming methods in PHP (or <a href="http://phpdeveloper.org/news/19091">lack thereof</a>) <i>Phil Sturgeon</i> has put together some ideas about why this (and unicode) changes aren't happing in the language.
</p>
<blockquote>
PHP is well known for having an inconsistent API when it comes to PHP functions. Anyone with an anti-PHP point of view will use this as one of their top 3 arguments for why PHP sucks, while most PHP developers will point out that they don't really care. [...] Another big thing that anti-PHP folks laugh about is the lack of scalar objects, so instead of $string->length() you have to do strlen($string). ANOTHER thing that people often joke about is how PHP 6.0 just never happened, because the team were trying to bake in Unicode support but just came across so many issues that it never happened.
</blockquote>
<p>
He shares an "obvious answer" to the problems and shares a theory as to why it's not happening - that no one is really working on out (outisde of <a href="https://github.com/nikic/scalar_objects">this POC</a>) and some of the handling with the recent property accessors <a href="https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#voting">RFC</a>. He finishes off the post with three more points, all related to the results of the voting - little points seem to get voted in easier, the representation of developers in the process and that at least one of the "no" votes had to do with not wanting to maintain the results.
</p>
<blockquote>
Making changes to this language should not be blocked just because a quiet minority of the core team don't like the idea of being asked to do stuff.
</blockquote>
<p>
Be sure to check out <a href="http://philsturgeon.co.uk/blog/2013/01/php-6-pissing-in-the-wind#comments">the comments</a> on the post - there's lots of them, so be sure you have some good time to read.
</p>]]></description>
      <pubDate>Mon, 28 Jan 2013 10:42:16 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Freek Lijten's Blog: Currently on PHP's internals - Property Accessors]]></title>
      <guid>http://www.phpdeveloper.org/news/17493</guid>
      <link>http://www.phpdeveloper.org/news/17493</link>
      <description><![CDATA[<p>
<i>Freek Lijten</i> has <a href="http://www.freeklijten.nl/home/2012/02/02/Currently-on-PHPs-internals-Property-Accessors">posted another</a> "Currently on PHP's internals..." post to his blog today (<a href="http://phpdeveloper.org/news/16476">here's</a> the previous one) with a look at the discussions around the idea of having "property accessors" in PHP - a standardized way of defining getters/setters in objects.
</p>
<blockquote>
 Today I will be discussing a feature that at this moment is called "Property Accessor". It is a method of defining getters and setters. Originally an RFC was defined as early as september 2009, but recently new discussion took place and an actual patch was created. There is no certainty this feature will ever make a PHP version but discussion seems to target implementation details and not the feature itself, so things are looking bright for this feature.
</blockquote>
<p>
There's two RFCs posted about the topic - <a href="https://wiki.php.net/rfc/propertygetsetsyntax">the original proposal</a> (from <i>Dennis Robinson</i>) and <a href="https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented">a patch</a> for implementing them (from <i>Clint Priest</i>). The proposal replaces the common magic getters/setters (__get & __set) with the optional "get" and "set" keywords inside of custom-defined properties.
</p>]]></description>
      <pubDate>Fri, 03 Feb 2012 09:39:14 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Shawn Stratton's Blog: Accesors and Religion]]></title>
      <guid>http://www.phpdeveloper.org/news/16349</guid>
      <link>http://www.phpdeveloper.org/news/16349</link>
      <description><![CDATA[<p>
<i>Shawn Stratton</i> has a new post to his blog talking about a topic he calls "flame bait" - the use of <a href="http://www.shawnstratton.info/accesors-and-religion/">accessors in PHP applications</a> (getters and setters) to access class properties.
</p>
<blockquote>
Objects have prop­er­ties which some­times need spe­cial logic on how they are retrieved and set.  There are sev­eral solu­tions to this and every­body has a dif­fer­ent view point about which is cor­rect, none are pretty and all have draw­backs which range from writ­ing extra code, cre­at­ing some­thing that has poor exten­si­bil­ity, or has issues with con­sis­tency.  These don't even breach the issues with IDE code com­ple­tion and analy­sis.  Lets look at some of these solutions.
</blockquote>
<p>
The solutions are the direct access to the class properties (which can cause some painful inconsistencies when things get complicated) and the alternative of setting up getters/setters for everything. <i>Shawn</i>'s alternative makes use of the __get and __set magic methods to catch the property values being set and handle them correctly, developers being none the wiser.
</p>]]></description>
      <pubDate>Tue, 17 May 2011 14:46:32 -0500</pubDate>
    </item>
  </channel>
</rss>
