<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Jonathan Bond-Caron - Ideas &amp; Experiments - PHP</title>
    <link>http://jbondc.openmv.com/</link>
    <description>Jonathan Bond-Caron - Ideas &amp; Experiments</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.1.3 - http://www.s9y.org/</generator>
    <pubDate>Thu, 24 Jul 2008 19:31:34 GMT</pubDate>

    <image>
        <url>http://jbondc.openmv.com/templates/mv/img/s9y_banner_small.png</url>
        <title>RSS: Jonathan Bond-Caron - Ideas &amp; Experiments - PHP - Jonathan Bond-Caron - Ideas &amp; Experiments</title>
        <link>http://jbondc.openmv.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>PHP LINQ?</title>
    <link>http://jbondc.openmv.com/archives/12-PHP-LINQ.html</link>
            <category>PHP</category>
    
    <comments>http://jbondc.openmv.com/archives/12-PHP-LINQ.html#comments</comments>
    <wfw:comment>http://jbondc.openmv.com/wfwcomment.php?cid=12</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://jbondc.openmv.com/rss.php?version=2.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    

    <author>nospam@example.com (Jonathan Bond-Caron)</author>
    <content:encoded>
    When it comes to writing Web applications, a developer often needs to access data from a multitude of data sources. The result is often a lot of spaghetti code that iterates and filters  the results (XML, csv, soap, REST services, and so on).  &lt;br /&gt;
&lt;br /&gt;
But the most common data that&#039;s accessed is in a relational database. Luckily, at some point database vendors agreed on SQL (standard query language) which is a common way to access /query data from a database. &lt;br /&gt;
&lt;br /&gt;
With the reality of the Web, wouldn&#039;t it be nice to have some form of standard query language to access many forms of data?? That&#039;s what Microsoft&#039;s &lt;a href=&quot;http://en.wikipedia.org/wiki/Language_Integrated_Query&quot; title=&quot;LINQ&quot;&gt;LINQ &lt;/a&gt; attempts to offer. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a great innovation and I was curious about what a PHP API could look like and it turns out there&#039;s a good discussion here:&lt;br /&gt;
&lt;a href=&quot;http://www.mikeborozdin.com/post/Is-PHPLinq-As-Cool-As-Real-LINQ.aspx&quot; &gt;http://www.mikeborozdin.com/post/Is-PHPLinq-As-Cool-As-Real-LINQ.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The advantage of LINQ in .NET is how the LINQ expressions can be evaluated and compiled. In short, it takes the expressions (&quot;pretty&quot; code) and builds the &quot;spaghetti code that iterates and filters  the results&quot; automatically. If the compiler is smart and can make proper machine level optimizations, I would guess it means very fast execution and a standard way of accessing data. Amazing!&lt;br /&gt;
&lt;br /&gt;
As for PHP, &lt;a href=&quot;http://blog.maartenballiauw.be/&quot; &gt;Maarten Balliauw&lt;/a&gt; still went ahead and created a PHP implementation of LINQ:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.codeplex.com/PHPLinq/Release/ProjectReleases.aspx?ReleaseId=10084&quot;  title=&quot;PHPLinq Release&quot;&gt;http://www.codeplex.com/PHPLinq/Release/ProjectReleases.aspx?ReleaseId=10084&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It&#039;s definetly &quot;interesting&quot; at this point and if PHP could support natively some form of LINQ, it would be a major achievement and very cool stuff.&lt;br /&gt;
&lt;br /&gt;
There&#039;s also a java version of &quot;LINQ&quot; (Quaere):&lt;br /&gt;
&lt;a href=&quot;http://www.theserverside.com/news/thread.tss?thread_id=46887&quot;  title=&quot;Quaere&quot;&gt;http://www.theserverside.com/news/thread.tss?thread_id=46887 &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 24 Jul 2008 14:49:11 -0400</pubDate>
    <guid isPermaLink="false">http://jbondc.openmv.com/archives/12-guid.html</guid>
    
</item>
<item>
    <title>Short PHP array synthax</title>
    <link>http://jbondc.openmv.com/archives/10-Short-PHP-array-synthax.html</link>
            <category>PHP</category>
    
    <comments>http://jbondc.openmv.com/archives/10-Short-PHP-array-synthax.html#comments</comments>
    <wfw:comment>http://jbondc.openmv.com/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://jbondc.openmv.com/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Jonathan Bond-Caron)</author>
    <content:encoded>
    There&#039;s an RFC that has been recently declined through the PHP internals list. It is a minor change/patch to introduces a short synthax to declare arrays in PHP.&lt;br /&gt;
&lt;br /&gt;
To declare an array in PHP, you currently use the following synthax: &lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$a = array(&#039;foo&#039; =&gt; &#039;bar&#039;, &#039;nestarray&#039; =&gt; array(0, 1, 5));&lt;br /&gt;
&lt;/code&gt;  &lt;br /&gt;
&lt;br /&gt;
The proposed patch (a few lines) would allow to declare arrays in a shorter form:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$a = array(&#039;foo&#039; =&gt; &#039;bar&#039;, &#039;nestarray&#039; =&gt; array(0, 1, 5));&lt;br /&gt;
&lt;br /&gt;
// New synthax&lt;br /&gt;
$a = [&#039;foo&#039;=&gt; &#039;bar&#039;, &#039;nestarray&#039;=&gt; [0, 1, 5]];&lt;br /&gt;
// Or&lt;br /&gt;
$a = [&#039;foo&#039;: &#039;bar&#039;, &#039;nestarray&#039;: [0, 1, 5]];&lt;br /&gt;
&lt;/code&gt;  &lt;br /&gt;
&lt;br /&gt;
This notation is used by many programming languages, most notably javascript. Since PHP is essentially a programming language used &lt;strong&gt;for&lt;/strong&gt; the Web, my opinion is it makes perfect sense to support a javascript-like notation for arrays.&lt;br /&gt;
&lt;br /&gt;
There&#039;s some resistance from the core developers and overall there were too many veto (negative) votes. I definitely understand their concern but feel it&#039;s a natural evolution of the language, this to me seems like something most &lt;strong&gt;users&lt;/strong&gt; would want to see in PHP. &lt;br /&gt;
&lt;br /&gt;
Hopefully, the PHP community can speak out enough to get better idea of what the users / php community wants. &lt;br /&gt;
&lt;br /&gt;
The actual proposal and more info at:&lt;br /&gt; &lt;a href=&quot;http://wiki.php.net/rfc/shortsyntaxforarrays&quot;  title=&quot;RFC - Short Array Synthax&quot;&gt;http://wiki.php.net/rfc/shortsyntaxforarrays&lt;/a&gt;. 
    </content:encoded>

    <pubDate>Fri, 30 May 2008 12:31:03 -0400</pubDate>
    <guid isPermaLink="false">http://jbondc.openmv.com/archives/10-guid.html</guid>
    
</item>

</channel>
</rss>