<?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: Self-executing functions</title>
	<atom:link href="http://www.jspatterns.com/self-executing-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jspatterns.com/self-executing-functions/</link>
	<description>Exploring common JavaScript patterns and anti-patterns</description>
	<lastBuildDate>Fri, 03 Feb 2012 21:54:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: &#187; Pseudoklassische Vererbung in JavaScript â€“ Teil 4 The Codejet</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-47027</link>
		<dc:creator>&#187; Pseudoklassische Vererbung in JavaScript â€“ Teil 4 The Codejet</dc:creator>
		<pubDate>Sat, 28 Jan 2012 23:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-47027</guid>
		<description>[...] (engl. function expression) zugewiesen, der sofort ausgefÃ¼hrt wird. Dies wird auch als &quot;immediate function&quot; bezeichnet. RÃ¼ckgabewert ist dabei ein weiterer anonymer Funktionsausdruck, der bis auf ein Detail [...]</description>
		<content:encoded><![CDATA[<p>[...] (engl. function expression) zugewiesen, der sofort ausgefÃ¼hrt wird. Dies wird auch als &quot;immediate function&quot; bezeichnet. RÃ¼ckgabewert ist dabei ein weiterer anonymer Funktionsausdruck, der bis auf ein Detail [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pellet mill automation</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-44118</link>
		<dc:creator>pellet mill automation</dc:creator>
		<pubDate>Tue, 03 Jan 2012 18:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-44118</guid>
		<description>We really enjoy your site publish. You can find truly lots of procedures we could place it to good use by the use of no work soon enough and economic assets. Thanks a great deal pertaining to supporting make this submit give light to quite a few troubles now we have encountered before now.</description>
		<content:encoded><![CDATA[<p>We really enjoy your site publish. You can find truly lots of procedures we could place it to good use by the use of no work soon enough and economic assets. Thanks a great deal pertaining to supporting make this submit give light to quite a few troubles now we have encountered before now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spencer Drager</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-17229</link>
		<dc:creator>Spencer Drager</dc:creator>
		<pubDate>Tue, 26 Apr 2011 20:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-17229</guid>
		<description>@Avi - There are plenty of examples. How often do you name variables something common?

Perhaps you use a single letter for a quick toggle value or whatnot, so you make a var i, var x, or var o. If these are in the global namespace, it would not be uncommon for another function to use the same name which can cause some interesting bugs. Or what if you name something like &quot;isComplete&quot; or &quot;isReady&quot; or any number of other generic, yet descriptive, names? By putting these in a self-executing function to reduce the likelihood of causing conflicts.</description>
		<content:encoded><![CDATA[<p>@Avi &#8211; There are plenty of examples. How often do you name variables something common?</p>
<p>Perhaps you use a single letter for a quick toggle value or whatnot, so you make a var i, var x, or var o. If these are in the global namespace, it would not be uncommon for another function to use the same name which can cause some interesting bugs. Or what if you name something like &#8220;isComplete&#8221; or &#8220;isReady&#8221; or any number of other generic, yet descriptive, names? By putting these in a self-executing function to reduce the likelihood of causing conflicts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-7966</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Tue, 28 Dec 2010 21:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-7966</guid>
		<description>I&#039;m using this method exactly in the bookmarklet I created. Works perfect!</description>
		<content:encoded><![CDATA[<p>I&#8217;m using this method exactly in the bookmarklet I created. Works perfect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-3615</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Thu, 05 Aug 2010 12:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-3615</guid>
		<description>@Avi - I think the author is trying to get across that the variables and functions inside a self-executing anon function will not be global and therefore won&#039;t clobber any variables / functions that may already exist in the global namespace, i.e. if you declare a var / function without namespacing it or using a particular function pattern it will be part of the global namespace, i.e. the window object in a browser, hope this helps....</description>
		<content:encoded><![CDATA[<p>@Avi &#8211; I think the author is trying to get across that the variables and functions inside a self-executing anon function will not be global and therefore won&#8217;t clobber any variables / functions that may already exist in the global namespace, i.e. if you declare a var / function without namespacing it or using a particular function pattern it will be part of the global namespace, i.e. the window object in a browser, hope this helps&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-3571</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Tue, 03 Aug 2010 15:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-3571</guid>
		<description></description>
		<content:encoded><![CDATA[<p>I didn&#8217;t understand the part of:<br />
&#8220;&#8230;You don’t want to add your variables and functions to the host page’s naming space and possibly causing a naming conflict with the page&#8217;s core code.&#8221;<br />
How can this scenario happen?<br />
Can you give me an example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alva Giannecchini</title>
		<link>http://www.jspatterns.com/self-executing-functions/#comment-3210</link>
		<dc:creator>Alva Giannecchini</dc:creator>
		<pubDate>Sun, 04 Jul 2010 19:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.jspatterns.com/?p=62#comment-3210</guid>
		<description>awesome bless you for composing this</description>
		<content:encoded><![CDATA[<p>awesome bless you for composing this</p>
]]></content:encoded>
	</item>
</channel>
</rss>

