<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PON or “PHP Object Notation” Is Already Here</title>
	<atom:link href="http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/feed/" rel="self" type="application/rss+xml" />
	<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/</link>
	<description>Where Schtuff Happens</description>
	<lastBuildDate>Tue, 03 Aug 2010 21:29:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: EllisGL</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-30615</link>
		<dc:creator>EllisGL</dc:creator>
		<pubDate>Mon, 11 May 2009 12:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-30615</guid>
		<description>&lt;a href=&#039;#comment-30612&#039; rel=&quot;nofollow&quot;&gt;@admin&lt;/a&gt; - I completely understand.</description>
		<content:encoded><![CDATA[<p><a href='#comment-30612' rel="nofollow">@admin</a> &#8211; I completely understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-30612</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 11 May 2009 08:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-30612</guid>
		<description>&lt;a href=&#039;#comment-30611&#039; rel=&quot;nofollow&quot;&gt;@EllisGL&lt;/a&gt; - 

I do not know if your syntax works with 5.3 but it sure makes sense, obviously.

Note that, as mentioned earlier, I had written this piece mostly tongue-in-cheek because SOAP was slowly killing me inside!</description>
		<content:encoded><![CDATA[<p><a href='#comment-30611' rel="nofollow">@EllisGL</a> &#8211; </p>
<p>I do not know if your syntax works with 5.3 but it sure makes sense, obviously.</p>
<p>Note that, as mentioned earlier, I had written this piece mostly tongue-in-cheek because SOAP was slowly killing me inside!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EllisGL</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-30611</link>
		<dc:creator>EllisGL</dc:creator>
		<pubDate>Mon, 11 May 2009 04:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-30611</guid>
		<description>Wouldn&#039;t waiting for PHP 5.3 to become a stable release and doing Lambda functions (anonymous functions) be better than doing eval? From the examples I have looked over, it seems we could do the following. I may be completely wrong on this, since I don&#039;t have a 5.3 RC installed.

 function($x)
                                {
                                   return($x*10);
                                });

echo $arr[&#039;somFunction&#039;](5);

With closures you could do more with the &#039;use&#039; keyword.
$arr = array(&#039;val1&#039; =&gt; 0,
             &#039;val2&#039; =&gt; 0&#039;,
             &#039;func&#039; =&gt; function()use(&amp;$arr)
                        {
                           return($arr[&#039;val1&#039;]*$arr[&#039;val2&#039;]);
                        });

$arr[&#039;val1] = 5;
$arr[&#039;val2] = 10;
echo $arr[&#039;func&#039;]();

Like I said, I could be completely wrong and/or there could be a better way, like using a keyword would that would represent (this or self) to reference the array.</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t waiting for PHP 5.3 to become a stable release and doing Lambda functions (anonymous functions) be better than doing eval? From the examples I have looked over, it seems we could do the following. I may be completely wrong on this, since I don&#8217;t have a 5.3 RC installed.</p>
<p> function($x)<br />
                                {<br />
                                   return($x*10);<br />
                                });</p>
<p>echo $arr['somFunction'](5);</p>
<p>With closures you could do more with the &#8216;use&#8217; keyword.<br />
$arr = array(&#8216;val1&#8242; =&gt; 0,<br />
             &#8216;val2&#8242; =&gt; 0&#8242;,<br />
             &#8216;func&#8217; =&gt; function()use(&amp;$arr)<br />
                        {<br />
                           return($arr['val1']*$arr['val2']);<br />
                        });</p>
<p>$arr['val1] = 5;<br />
$arr['val2] = 10;<br />
echo $arr['func']();</p>
<p>Like I said, I could be completely wrong and/or there could be a better way, like using a keyword would that would represent (this or self) to reference the array.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-18594</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 18 Nov 2008 06:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-18594</guid>
		<description>Well, that article was written mostly in jest -- do not give it too much credit, I was just blowing some steam as I had spent the previous week working exclusively with SOAP :)
Obviously if I were to use something like this, it would be between two trusted servers, not for web clients; but I wouldn&#039;t even use this guy as there are other existing lightweight solutions that fit the bill, such as JSON (indeed) or YAML. Even XML-RPC is lightweight compared to a full-on SOAP exchange.
Again, after spending a week with SOAP, this was just a -- liberating -- exercise in finding an implementation that would be its exact opposite: as little overhead as possible ;)</description>
		<content:encoded><![CDATA[<p>Well, that article was written mostly in jest &#8212; do not give it too much credit, I was just blowing some steam as I had spent the previous week working exclusively with SOAP <img src='http://nexus.zteo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Obviously if I were to use something like this, it would be between two trusted servers, not for web clients; but I wouldn&#8217;t even use this guy as there are other existing lightweight solutions that fit the bill, such as JSON (indeed) or YAML. Even XML-RPC is lightweight compared to a full-on SOAP exchange.<br />
Again, after spending a week with SOAP, this was just a &#8212; liberating &#8212; exercise in finding an implementation that would be its exact opposite: as little overhead as possible <img src='http://nexus.zteo.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SneakyWho_am_i</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-18120</link>
		<dc:creator>SneakyWho_am_i</dc:creator>
		<pubDate>Sun, 16 Nov 2008 05:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-18120</guid>
		<description>So you stacked some arrays up in a sting and eval()ed the string... Doesn&#039;t seem right, firstly for requiring eval() and secondly for just eval()ing a string. Am I missing the point? Javascript has that even without JSON.

It&#039;s nice that it works with a minimal amount of code, but the problems here are plentiful:
1) PHP already has the serialize() function, which does exactly what you&#039;re talking about _and_can_hold_objects_and_pretty_much_anything_else_in_it_you_like_ - and is marginally more secure than eval()
2) Where is this kind of data going to come from? The main point of JSON is to move data across the internet - are you going to eval() data on your server that you&#039;ve received through the internet? I hope not. If not, it&#039;s not really an answer to JSON is it?
3) If only PHP understands it, it&#039;s not really much use is it? As noted above, PHP already serializes far more interesting things than arrays. And it does it in compiled code, too, so it&#039;s probably faster. Are you reinventing the wheel?
4) A nice format for shipping data between applications client-side and serverside has actually already been developed and is implemented in many languages including Python and PHP. That notation is... (drumroll) ... JSON. Sure, you need an extension, but I&#039;d rather just use the nice standard JSON extension than cook up my own black magic, hacky implementation.

As an aside, on line ~36 of the 4th block of code you used double quotes to terminate a string literal, but you used the concatenation operator to insert a variable into it. Nobody&#039;s code is perfect, least of all mine, and that&#039;s such a dumb thing to notice or care about but it is one of my pet hates because not only is it less efficient to parse that, it&#039;s also more difficult to write (as you used between two and four more keystrokes than what you would have used if you&#039;d done it properly, plus it&#039;s not quite as readable)...

Your other articles are all fantastic. I loved them, I learned from them, I was inspired by them. But with this particular one, I just don&#039;t get it.</description>
		<content:encoded><![CDATA[<p>So you stacked some arrays up in a sting and eval()ed the string&#8230; Doesn&#8217;t seem right, firstly for requiring eval() and secondly for just eval()ing a string. Am I missing the point? Javascript has that even without JSON.</p>
<p>It&#8217;s nice that it works with a minimal amount of code, but the problems here are plentiful:<br />
1) PHP already has the serialize() function, which does exactly what you&#8217;re talking about _and_can_hold_objects_and_pretty_much_anything_else_in_it_you_like_ &#8211; and is marginally more secure than eval()<br />
2) Where is this kind of data going to come from? The main point of JSON is to move data across the internet &#8211; are you going to eval() data on your server that you&#8217;ve received through the internet? I hope not. If not, it&#8217;s not really an answer to JSON is it?<br />
3) If only PHP understands it, it&#8217;s not really much use is it? As noted above, PHP already serializes far more interesting things than arrays. And it does it in compiled code, too, so it&#8217;s probably faster. Are you reinventing the wheel?<br />
4) A nice format for shipping data between applications client-side and serverside has actually already been developed and is implemented in many languages including Python and PHP. That notation is&#8230; (drumroll) &#8230; JSON. Sure, you need an extension, but I&#8217;d rather just use the nice standard JSON extension than cook up my own black magic, hacky implementation.</p>
<p>As an aside, on line ~36 of the 4th block of code you used double quotes to terminate a string literal, but you used the concatenation operator to insert a variable into it. Nobody&#8217;s code is perfect, least of all mine, and that&#8217;s such a dumb thing to notice or care about but it is one of my pet hates because not only is it less efficient to parse that, it&#8217;s also more difficult to write (as you used between two and four more keystrokes than what you would have used if you&#8217;d done it properly, plus it&#8217;s not quite as readable)&#8230;</p>
<p>Your other articles are all fantastic. I loved them, I learned from them, I was inspired by them. But with this particular one, I just don&#8217;t get it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DyncGlync</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-17071</link>
		<dc:creator>DyncGlync</dc:creator>
		<pubDate>Thu, 08 May 2008 03:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-17071</guid>
		<description>thats it, guy</description>
		<content:encoded><![CDATA[<p>thats it, guy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: (Ã¤Â»Â®)Ã§Â§â€¹Ã¥â€¦Æ’Ã£ÂÅ’Ã£â€šÂµÃ£Æ’Å“Ã£ÂÂ£Ã£ÂÂ¦Ã£ÂÂªÃ£Ââ€žÃ£Ââ€¹Ã£ÂÂ¿Ã£â€šâ€œÃ£ÂÂªÃ£ÂÂ§Ã¨Â¦â€¹Ã¥Â¼ÂµÃ£â€šÂÃ£Â</title>
		<link>http://nexus.zteo.com/blog/2008/02/08/pon-or-php-object-notation-is-already-here/comment-page-1/#comment-16902</link>
		<dc:creator>(Ã¤Â»Â®)Ã§Â§â€¹Ã¥â€¦Æ’Ã£ÂÅ’Ã£â€šÂµÃ£Æ’Å“Ã£ÂÂ£Ã£ÂÂ¦Ã£ÂÂªÃ£Ââ€žÃ£Ââ€¹Ã£ÂÂ¿Ã£â€šâ€œÃ£ÂÂªÃ£ÂÂ§Ã¨Â¦â€¹Ã¥Â¼ÂµÃ£â€šÂÃ£Â</dc:creator>
		<pubDate>Sat, 09 Feb 2008 05:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://nexus.zteo.com/2008/02/08/pon-or-php-object-notation-is-already-here/#comment-16902</guid>
		<description>[...] Ã£â‚¬Å’evalÃ£Ââ€”Ã£ÂÂ¦JavascriptÃ£â€šÂªÃ£Æ’â€“Ã£â€šÂ¸Ã£â€šÂ§Ã£â€šÂ¯Ã£Æ’Ë†Ã£ÂÂ«Ã£ÂÂªÃ£â€šâ€¹Ã£Æ’â€¡Ã£Æ’Â¼Ã£â€šÂ¿Ã¥Â½Â¢Ã¥Â¼ÂÃ£ÂÅ’JSONÃ£ÂÂªÃ£â€šâ€œÃ£ÂÂ Ã£â€šÂÃ£â‚¬ÂÃ£ÂÂÃ£â€šâ€œÃ£ÂÂªÃ£ÂÂ®PHPÃ£ÂÂ§Ã£â€šâ€šÃ£ÂÂ§Ã£ÂÂÃ£â€šâ€¹Ã£ÂÅ“!Ã£â‚¬ÂÃ£ÂÂ¨Ã£Ââ€žÃ£Ââ€ Ã£Ââ€œÃ£ÂÂ¨Ã£ÂÂ§PON(PHP Object Notation)Ã£ÂÂ§Ã£Ââ„¢Ã£â‚¬â€š [...]</description>
		<content:encoded><![CDATA[<p>[...] Ã£â‚¬Å’evalÃ£Ââ€”Ã£ÂÂ¦JavascriptÃ£â€šÂªÃ£Æ’â€“Ã£â€šÂ¸Ã£â€šÂ§Ã£â€šÂ¯Ã£Æ’Ë†Ã£ÂÂ«Ã£ÂÂªÃ£â€šâ€¹Ã£Æ’â€¡Ã£Æ’Â¼Ã£â€šÂ¿Ã¥Â½Â¢Ã¥Â¼ÂÃ£ÂÅ’JSONÃ£ÂÂªÃ£â€šâ€œÃ£ÂÂ Ã£â€šÂÃ£â‚¬ÂÃ£ÂÂÃ£â€šâ€œÃ£ÂÂªÃ£ÂÂ®PHPÃ£ÂÂ§Ã£â€šâ€šÃ£ÂÂ§Ã£ÂÂÃ£â€šâ€¹Ã£ÂÅ“!Ã£â‚¬ÂÃ£ÂÂ¨Ã£Ââ€žÃ£Ââ€ Ã£Ââ€œÃ£ÂÂ¨Ã£ÂÂ§PON(PHP Object Notation)Ã£ÂÂ§Ã£Ââ„¢Ã£â‚¬â€š [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
