<?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: Ask JW: Decoding Self-Invoking Anonymous Functions</title>
	<atom:link href="http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/</link>
	<description>The ThemeForest Blog</description>
	<lastBuildDate>Mon, 27 Sep 2010 19:49:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alex</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-17069</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 18 Jul 2009 23:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-17069</guid>
		<description>Thanks! Didn&#039;t realize JS allowed this (but not surprised I guess). 

Not digging the explanation as much as everyone else, though. I think the most important fact is omitted. In JS, the name of a function is just a name that points to a chunk of code. When you call a function named foo, like so:

foo();

...you are telling JS to execute the chunk of code that looks something like this:

function foo(){...}

There is virtually no difference (apparently) between calling the function by its name and inserting the entire chunk of code representing the function directly into the call statement. In other words, the following do the same thing:

foo();
(the_whole_function)();

Why?  Because foo = the_whole_function.

Sorry, maybe for some people it seems like  I am just reiterating. But this way of explaining it seems to me a lot more clear than saying parentheses cause the  function execute...somehow.</description>
		<content:encoded><![CDATA[<p>Thanks! Didn&#8217;t realize JS allowed this (but not surprised I guess). </p>
<p>Not digging the explanation as much as everyone else, though. I think the most important fact is omitted. In JS, the name of a function is just a name that points to a chunk of code. When you call a function named foo, like so:</p>
<p>foo();</p>
<p>&#8230;you are telling JS to execute the chunk of code that looks something like this:</p>
<p>function foo(){&#8230;}</p>
<p>There is virtually no difference (apparently) between calling the function by its name and inserting the entire chunk of code representing the function directly into the call statement. In other words, the following do the same thing:</p>
<p>foo();<br />
(the_whole_function)();</p>
<p>Why?  Because foo = the_whole_function.</p>
<p>Sorry, maybe for some people it seems like  I am just reiterating. But this way of explaining it seems to me a lot more clear than saying parentheses cause the  function execute&#8230;somehow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rolf</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-13381</link>
		<dc:creator>Rolf</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-13381</guid>
		<description>Indeed, an Aha! moment! :D</description>
		<content:encoded><![CDATA[<p>Indeed, an Aha! moment! <img src='http://blog.themeforest.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alec</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-12831</link>
		<dc:creator>Alec</dc:creator>
		<pubDate>Sat, 06 Jun 2009 23:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-12831</guid>
		<description>I just had an Aha! moment :)</description>
		<content:encoded><![CDATA[<p>I just had an Aha! moment <img src='http://blog.themeforest.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damon medic</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-9494</link>
		<dc:creator>damon medic</dc:creator>
		<pubDate>Thu, 30 Apr 2009 22:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-9494</guid>
		<description>Great, tutorials, Jeffrey. You must have had a brilliant mother!</description>
		<content:encoded><![CDATA[<p>Great, tutorials, Jeffrey. You must have had a brilliant mother!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JimB</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-9303</link>
		<dc:creator>JimB</dc:creator>
		<pubDate>Mon, 27 Apr 2009 21:03:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-9303</guid>
		<description>Wow!  I&#039;ve been trying to teach myself jquery by reading other peoples&#039; code and &quot;intuiting&quot; what is going on based on my knowledge of old-school languages (VB, Pascal, etc.).  I&#039;m not sure how I ever would have gotten to the point where I saw the construct ( F(n){} ) (x) as &quot;immediately execute function F passing the value of x into the parameter n&quot;.  There&#039;s nothing like that in VB.

You have explained so clearly that I can&#039;t see how it could have been anything else.

I am only part-way through the &quot;jQuery for Beginners&quot; series but have learned a ton.  Is there some reference, though, that would help an old fogey like me learn how to _read_ javascript?</description>
		<content:encoded><![CDATA[<p>Wow!  I&#8217;ve been trying to teach myself jquery by reading other peoples&#8217; code and &#8220;intuiting&#8221; what is going on based on my knowledge of old-school languages (VB, Pascal, etc.).  I&#8217;m not sure how I ever would have gotten to the point where I saw the construct ( F(n){} ) (x) as &#8220;immediately execute function F passing the value of x into the parameter n&#8221;.  There&#8217;s nothing like that in VB.</p>
<p>You have explained so clearly that I can&#8217;t see how it could have been anything else.</p>
<p>I am only part-way through the &#8220;jQuery for Beginners&#8221; series but have learned a ton.  Is there some reference, though, that would help an old fogey like me learn how to _read_ javascript?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark McDonnell</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-8936</link>
		<dc:creator>Mark McDonnell</dc:creator>
		<pubDate>Mon, 20 Apr 2009 12:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-8936</guid>
		<description>Thank was a very useful explanation. Thanks!</description>
		<content:encoded><![CDATA[<p>Thank was a very useful explanation. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tulsi</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-8930</link>
		<dc:creator>Tulsi</dc:creator>
		<pubDate>Mon, 20 Apr 2009 08:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-8930</guid>
		<description>This seems to be a good content. Appreciate it.</description>
		<content:encoded><![CDATA[<p>This seems to be a good content. Appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shingi</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-8915</link>
		<dc:creator>Shingi</dc:creator>
		<pubDate>Sun, 19 Apr 2009 22:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-8915</guid>
		<description>This is awesome!! Love this series.</description>
		<content:encoded><![CDATA[<p>This is awesome!! Love this series.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Free CSS Templates</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-8886</link>
		<dc:creator>Free CSS Templates</dc:creator>
		<pubDate>Sun, 19 Apr 2009 03:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-8886</guid>
		<description>Great article, very well written.  Thanks!</description>
		<content:encoded><![CDATA[<p>Great article, very well written.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saro</title>
		<link>http://blog.themeforest.net/tutorials/ask-jw-decoding-self-invoking-anonymous-functions/comment-page-1/#comment-8874</link>
		<dc:creator>Saro</dc:creator>
		<pubDate>Sat, 18 Apr 2009 16:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.themeforest.net/?p=1702#comment-8874</guid>
		<description>I had to laugh with this &#039;Ask Jeffrey&#039; thing :D, and even more with Drew.</description>
		<content:encoded><![CDATA[<p>I had to laugh with this &#8216;Ask Jeffrey&#8217; thing <img src='http://blog.themeforest.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , and even more with Drew.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
