<?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: PHP 5.3 is the new JavaScript (almost)</title>
	<atom:link href="http://www.hermanradtke.com/blog/php-5-3-is-the-new-javascript-almost/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hermanradtke.com/blog/php-5-3-is-the-new-javascript-almost/</link>
	<description>Personal anecdotes from my experiences using the LAMP stack</description>
	<lastBuildDate>Sun, 05 Feb 2012 19:08:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Using Absolute URL&#8217;s In The View &#124; LAMPlights</title>
		<link>http://www.hermanradtke.com/blog/php-5-3-is-the-new-javascript-almost/comment-page-1/#comment-3495</link>
		<dc:creator>Using Absolute URL&#8217;s In The View &#124; LAMPlights</dc:creator>
		<pubDate>Sun, 28 Mar 2010 01:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.hermanradtke.com/blog/?p=377#comment-3495</guid>
		<description>[...] and closures to meet all the requirements and isolate the parts that change.&#160; Read these posts if you are not familiar with functional programming in PHP. class Crimson_Url &#123; public static [...]</description>
		<content:encoded><![CDATA[<p>[...] and closures to meet all the requirements and isolate the parts that change.&nbsp; Read these posts if you are not familiar with functional programming in PHP. class Crimson_Url &#123; public static [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Abele</title>
		<link>http://www.hermanradtke.com/blog/php-5-3-is-the-new-javascript-almost/comment-page-1/#comment-3431</link>
		<dc:creator>Nate Abele</dc:creator>
		<pubDate>Tue, 16 Mar 2010 23:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.hermanradtke.com/blog/?p=377#comment-3431</guid>
		<description>The use() clause in PHP closures might seem annoying at first, but it actually helps enforce referential transparency in your functions.</description>
		<content:encoded><![CDATA[<p>The use() clause in PHP closures might seem annoying at first, but it actually helps enforce referential transparency in your functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herman Radtke</title>
		<link>http://www.hermanradtke.com/blog/php-5-3-is-the-new-javascript-almost/comment-page-1/#comment-3429</link>
		<dc:creator>Herman Radtke</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hermanradtke.com/blog/?p=377#comment-3429</guid>
		<description>Ah, you are right.  I have not used that method of creating objects in a long time and completely forgot about it.  Thanks.

One thing I do like about the &quot;use&quot; syntax is that it is easier for the parser to see what variables are being used in the closure.  I know JavaScript minification programs have a lot of bugs that stem from the fact that it is hard to tell what the closure is using sometimes.</description>
		<content:encoded><![CDATA[<p>Ah, you are right.  I have not used that method of creating objects in a long time and completely forgot about it.  Thanks.</p>
<p>One thing I do like about the &#8220;use&#8221; syntax is that it is easier for the parser to see what variables are being used in the closure.  I know JavaScript minification programs have a lot of bugs that stem from the fact that it is hard to tell what the closure is using sometimes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miles Johnson</title>
		<link>http://www.hermanradtke.com/blog/php-5-3-is-the-new-javascript-almost/comment-page-1/#comment-3427</link>
		<dc:creator>Miles Johnson</dc:creator>
		<pubDate>Tue, 16 Mar 2010 06:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.hermanradtke.com/blog/?p=377#comment-3427</guid>
		<description>A small correction on &quot;Now JavaScript does not have traditional classes like PHP&quot;. Javascript does have objects you can instantiate and save state with, but most of the time its not needed and we use static objects instead (var obj = {}). Example:

function Object(param) {
	function Object(param) {
		// Private constructor
	};

	this.publicVar = param;
	this.publicMethod: function() {};

	var privateVar;
	function privateMethod() {};
}

var obj = new Object(1);

However back onto the topic at hand. The use() in the closure really irks me sometimes as I really wish it would just inherit the current scope, but oh well.</description>
		<content:encoded><![CDATA[<p>A small correction on &#8220;Now JavaScript does not have traditional classes like PHP&#8221;. Javascript does have objects you can instantiate and save state with, but most of the time its not needed and we use static objects instead (var obj = {}). Example:</p>
<p>function Object(param) {<br />
	function Object(param) {<br />
		// Private constructor<br />
	};</p>
<p>	this.publicVar = param;<br />
	this.publicMethod: function() {};</p>
<p>	var privateVar;<br />
	function privateMethod() {};<br />
}</p>
<p>var obj = new Object(1);</p>
<p>However back onto the topic at hand. The use() in the closure really irks me sometimes as I really wish it would just inherit the current scope, but oh well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

