<?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: A JavaScript Module Pattern</title>
	<atom:link href="http://www.yuiblog.com/blog/index.php/2007/06/12/module-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/</link>
	<description>The official blog of the YUI Project.</description>
	<lastBuildDate>Tue, 16 Mar 2010 08:44:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Organizing Javascript code &#124; Mixu&#8217;s blog</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-587882</link>
		<dc:creator>Organizing Javascript code &#124; Mixu&#8217;s blog</dc:creator>
		<pubDate>Tue, 26 Jan 2010 20:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-587882</guid>
		<description>[...] example code below is adopted from (http://yuiblog.com/blog/2007/06/12/module-pattern/): // create a namespace YAHOO.namespace&#40;&quot;myProject&quot;&#41;; // Assign the return value [...]</description>
		<content:encoded><![CDATA[<p>[...] example code below is adopted from (<a href="http://yuiblog.com/blog/2007/06/12/module-pattern/" rel="nofollow">http://yuiblog.com/blog/2007/06/12/module-pattern/</a>): // create a namespace YAHOO.namespace&#40;&quot;myProject&quot;&#41;; // Assign the return value [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hommage au pattern module &#124; Pyxis blog</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-587708</link>
		<dc:creator>Hommage au pattern module &#124; Pyxis blog</dc:creator>
		<pubDate>Tue, 05 Jan 2010 01:02:25 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-587708</guid>
		<description>[...] celui de JavaScript, mais l’autre de l’excellente bibliothèque YUI, qui vise le HTML (même s’il n’a pas [...]</description>
		<content:encoded><![CDATA[<p>[...] celui de JavaScript, mais l’autre de l’excellente bibliothèque YUI, qui vise le HTML (même s’il n’a pas [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A JavaScript Module Pattern &#124; Totti&#39;s Blog</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-587637</link>
		<dc:creator>A JavaScript Module Pattern &#124; Totti&#39;s Blog</dc:creator>
		<pubDate>Mon, 28 Dec 2009 13:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-587637</guid>
		<description>[...] This is a great article by Eric Miraglia posted on Y!UI Blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] This is a great article by Eric Miraglia posted on Y!UI Blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Gerndt</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-586707</link>
		<dc:creator>Larry Gerndt</dc:creator>
		<pubDate>Sat, 28 Nov 2009 19:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-586707</guid>
		<description>I&#039;ve been using the module pattern ever since I saw Douglas Crockford&#039;s video explaining it.  But I do it slightly differently.  Instead of placing the return statement above the definitions of public functions, I place it at the end of the module and just reference the functions I want to make public, like this:

return {
    init: init,
    calculate: calculate,
    ...
}</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using the module pattern ever since I saw Douglas Crockford&#8217;s video explaining it.  But I do it slightly differently.  Instead of placing the return statement above the definitions of public functions, I place it at the end of the module and just reference the functions I want to make public, like this:</p>
<p>return {<br />
    init: init,<br />
    calculate: calculate,<br />
    &#8230;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javascript closures &#8211; Helephant.com</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-586522</link>
		<dc:creator>Javascript closures &#8211; Helephant.com</dc:creator>
		<pubDate>Sun, 22 Nov 2009 21:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-586522</guid>
		<description>[...] Module pattern &#8211; the most flexible way to do namespaces for javascript. [...]</description>
		<content:encoded><![CDATA[<p>[...] Module pattern &#8211; the most flexible way to do namespaces for javascript. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajaxian &#187; Full Frontal &#8216;09: Robert Nyman on the Javascript Language</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-586447</link>
		<dc:creator>Ajaxian &#187; Full Frontal &#8216;09: Robert Nyman on the Javascript Language</dc:creator>
		<pubDate>Fri, 20 Nov 2009 12:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-586447</guid>
		<description>[...] Global scope: Avoid using global scope where you can. For example, nesting functions. R obert later points to the Yahoo! module pattern. [...]</description>
		<content:encoded><![CDATA[<p>[...] Global scope: Avoid using global scope where you can. For example, nesting functions. R obert later points to the Yahoo! module pattern. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog::Log &#187; Blog Archive &#187; Custom Modules in YUI 3</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-586351</link>
		<dc:creator>Blog::Log &#187; Blog Archive &#187; Custom Modules in YUI 3</dc:creator>
		<pubDate>Mon, 16 Nov 2009 21:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-586351</guid>
		<description>[...] A common way to share functionality among different YUI instances is to use the YUI namespace when assigning the function. If you do not recognize the structure of the above function definition you may find out more be reading about the module pattern. [...]</description>
		<content:encoded><![CDATA[<p>[...] A common way to share functionality among different YUI instances is to use the YUI namespace when assigning the function. If you do not recognize the structure of the above function definition you may find out more be reading about the module pattern. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-585664</link>
		<dc:creator>Ankit</dc:creator>
		<pubDate>Tue, 27 Oct 2009 02:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-585664</guid>
		<description>Gr8 Article Eric!</description>
		<content:encoded><![CDATA[<p>Gr8 Article Eric!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna Chaitanya.T</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-3/#comment-585655</link>
		<dc:creator>Krishna Chaitanya.T</dc:creator>
		<pubDate>Mon, 26 Oct 2009 17:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-585655</guid>
		<description>Thanks a lot for the article Eric! Though it has been published way long back, it is being referred by many young modern JavaScript developers even now.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for the article Eric! Though it has been published way long back, it is being referred by many young modern JavaScript developers even now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Zone &#187; Blog Archive &#187; Maximising Javascript Minimisation and Readability</title>
		<link>http://www.yuiblog.com/blog/2007/06/12/module-pattern/comment-page-2/#comment-585426</link>
		<dc:creator>The Zone &#187; Blog Archive &#187; Maximising Javascript Minimisation and Readability</dc:creator>
		<pubDate>Sun, 18 Oct 2009 03:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://yuiblog.com/blog/2007/06/12/module-pattern/#comment-585426</guid>
		<description>[...] using a combination of the YUI Compressor and the Revealing Module Pattern you can maximise the effect of minimisation and, as a bonus, improve code [...]</description>
		<content:encoded><![CDATA[<p>[...] using a combination of the YUI Compressor and the Revealing Module Pattern you can maximise the effect of minimisation and, as a bonus, improve code [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
