<?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, 24 May 2013 02:50:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Pawel Turlejski's Blo: What's wrong with PHP closures?]]></title>
      <guid>http://www.phpdeveloper.org/news/13345</guid>
      <link>http://www.phpdeveloper.org/news/13345</link>
      <description><![CDATA[<p>
In a recent post <i>Pawel Turlejski</i> takes a look at what he thinks is <a href="http://justafewlines.com/2009/10/whats-wrong-with-php-closures/">wrong with PHP closures</a> as compared to syntax in a few other languages.
</p>
<blockquote>
PHP 5.3, along with many other features, introduced closures. So now we can finally do all the cool stuff that Ruby / Groovy / Scala / any_modern_language guys can do, right? Well, we can, but we probably won't... Here's why.
</blockquote>
<p>
He <a href="http://justafewlines.com/2009/10/whats-wrong-with-php-closures/">compares</a> the PHP syntax for using closures/lambda functions with the abilities of Groovy and Scala. He does point out out that the <a href="http://php.net/ArrayObject">ArrayObject</a> wrapper does allow you to work a bit more fluently with the array's contents, but it's still not quite the same. According to him:
</p>
<blockquote>
I'm sure closures will find their uses in the PHP world (like delayed execution or automated resource management), but IMHO replacing traditional loops and array operations is not one of them.
</blockquote>]]></description>
      <pubDate>Tue, 06 Oct 2009 13:16:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ant Phillips' Blog: PHP/Groovy Bridge]]></title>
      <guid>http://www.phpdeveloper.org/news/11739</guid>
      <link>http://www.phpdeveloper.org/news/11739</link>
      <description><![CDATA[<p>
In a <a href="http://antblah.blogspot.com/2009/01/phpgroovy-bridge.html">recent post</a> <i>Ant Phillips</i> looks at another bridge that's offered to combine PHP with another language (besides the <a href="http://php-java-bridge.sourceforge.net/">Java one</a>) - a link over to Groovy.
</p>
<blockquote>
Up until recently the PHP runtime was treating Groovy code just the same as Java. Anyone could compile a Groovy class to Java class files using the Groovy compiler. Those class files could then be dropped into a Zero application and used in PHP through the PHP/Java Bridge. The problem is that Groovy isn't the same as Java. 
</blockquote>
<p>
He compares the way its works when its Java-esque and how it should work as combined with the Groovy bridge. The code is much cleaner and, by making it more readable, makes it easier to maintain in the future. You can see some slides from a presentation hes given on the subject <a href="http://www.slideshare.net/AntPhillips/groovy-bridge-presentation/">here</a>.
</p>]]></description>
      <pubDate>Wed, 14 Jan 2009 10:23:46 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: PHP, Groovy and language evolution]]></title>
      <guid>http://www.phpdeveloper.org/news/10298</guid>
      <link>http://www.phpdeveloper.org/news/10298</link>
      <description><![CDATA[<p>
In a <a href="http://michaelkimsal.com/blog/php-groovy-and-language-evolution/">new post</a> <i>Michael Kimsal</i> does a good job comparing the rise of PHP5 (and what it brought with it) to his language of choice these days - <a href="http://groovy.codehaus.org/">Groovy</a>.
</p>
<blockquote>
I remember when PHP5 first came out having 'discussions' with a number of people who insisted that PHP5 was way better than 4. [...] Basically, intentions were made clearer with things like "public protected private" (PPP),but I have not yet seen any web project get done faster or dare I say even much *better* due to those sorts of things. [...] This isn't specifically saying PPP is necessarily bad, but that PHP could have addressed the issue in a fashion more suitable to dynamic languages.  Keep reading for an example.
</blockquote>
<p>
His comparison is to how Groovy handles properties in a class - everything is private unless declared otherwise. This could be ported (somewhat) over to PHP and would eliminate the need to search&replace all over the code for the right variables.
</p>]]></description>
      <pubDate>Thu, 29 May 2008 12:52:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Michael Kimsal's Blog: Grails for PHP Developers Part 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9663</guid>
      <link>http://www.phpdeveloper.org/news/9663</link>
      <description><![CDATA[<p>
<i>Michael Kimsal</i> <a href="http://michaelkimsal.com/blog/?p=467">points out</a> the posting of the latest part of his "Grails for PHP developers" series to his blog site - <a href="http://michaelkimsal.com/blog/?page_id=451">Part Five</a> of the series.
</p>
<blockquote>
I've put up the latest installment in my "Grails for PHP developers".  Rather than delve too much more in to Grails head on, I'm taking this installment (and at least the next one) to delve more in to the Groovy language itself.  Groovy offers similarities to PHP, but also many differences which can trip you up if you're not careful.  I'll try to lay those out as best I can in the next couple of installments.
</blockquote>
<p>
This <a href="http://michaelkimsal.com/blog/?page_id=451">new part</a> of the series goes back and puts the spotlight on GRoovy, the base of the Groovy/Grails combo. He talks about working with variables and arrays as containers for multiple pieces of data and some possible gotchas that could come up along the way.
</p>]]></description>
      <pubDate>Tue, 19 Feb 2008 12:02:00 -0600</pubDate>
    </item>
  </channel>
</rss>
