<?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"
	>
<channel>
	<title>Comments on: JavaScript: Put everything in a namespace</title>
	<atom:link href="http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/</link>
	<description>letting the problem solve itself</description>
	<pubDate>Tue, 08 Jul 2008 20:58:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: efeefe</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-41111</link>
		<dc:creator>efeefe</dc:creator>
		<pubDate>Mon, 02 Jun 2008 15:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-41111</guid>
		<description>&lt;strong&gt;Sistemas de aprendizado...&lt;/strong&gt;

...</description>
		<content:encoded><![CDATA[<p><strong>Sistemas de aprendizado&#8230;</strong></p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. Prolix &#187; Blog Archive &#187; Enliven your namespaces</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-39538</link>
		<dc:creator>Dr. Prolix &#187; Blog Archive &#187; Enliven your namespaces</dc:creator>
		<pubDate>Thu, 01 May 2008 17:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-39538</guid>
		<description>[...] practice to use namespaces when writing your JavaScript. The reasons why have been stated time and again by much smarter and more eloquent people than myself, so suffice it to say, you should do [...]</description>
		<content:encoded><![CDATA[<p>[...] practice to use namespaces when writing your JavaScript. The reasons why have been stated time and again by much smarter and more eloquent people than myself, so suffice it to say, you should do [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Javascript Namespaces Flusensieb</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-36088</link>
		<dc:creator>&#187; Javascript Namespaces Flusensieb</dc:creator>
		<pubDate>Sun, 27 Jan 2008 10:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-36088</guid>
		<description>[...] More Infos: dustindiaz.com, lixo.org [...]</description>
		<content:encoded><![CDATA[<p>[...] More Infos: dustindiaz.com, lixo.org [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: All in a days work&#8230;</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32167</link>
		<dc:creator>All in a days work&#8230;</dc:creator>
		<pubDate>Fri, 05 Oct 2007 14:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32167</guid>
		<description>[...] JavaScript: Put everything in a namespace By creating an anonymous function that returns the object I want to define, and then immediately calling it, I can hide whatever I don’t want other parts of the code to see - it’s all tucked away in the local context of that anonymous function. [...]</description>
		<content:encoded><![CDATA[<p>[...] JavaScript: Put everything in a namespace By creating an anonymous function that returns the object I want to define, and then immediately calling it, I can hide whatever I don’t want other parts of the code to see - it’s all tucked away in the local context of that anonymous function. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menno van Slooten</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32166</link>
		<dc:creator>Menno van Slooten</dc:creator>
		<pubDate>Fri, 05 Oct 2007 13:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32166</guid>
		<description>Interesting notation. Could you please explain to me how this is better than:

function Article() {
  // private :
  var title = 'I am a private title';

  // public    
  this.getTitle = function() {
    return title;
  }
    
  this.save = function() {
    alert('Saving ' + this.getTitle());
  }
}</description>
		<content:encoded><![CDATA[<p>Interesting notation. Could you please explain to me how this is better than:</p>
<p>function Article() {<br />
  // private :<br />
  var title = &#8216;I am a private title&#8217;;</p>
<p>  // public<br />
  this.getTitle = function() {<br />
    return title;<br />
  }</p>
<p>  this.save = function() {<br />
    alert(&#8217;Saving &#8216; + this.getTitle());<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Grunstra</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32145</link>
		<dc:creator>Jason Grunstra</dc:creator>
		<pubDate>Thu, 04 Oct 2007 23:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32145</guid>
		<description>Back to back articles on closures! No sooner had I finished reading this post than I stumbled upon this one by Dustin Diaz:

http://www.dustindiaz.com/roll-out-your-own-interface/

In the comments over there someone link s to this great article over on the YUI site that explains in great detail the Module Pattern: http://yuiblog.com/blog/2007/06/12/module-pattern/

It's all starting to sink in.</description>
		<content:encoded><![CDATA[<p>Back to back articles on closures! No sooner had I finished reading this post than I stumbled upon this one by Dustin Diaz:</p>
<p><a href="http://www.dustindiaz.com/roll-out-your-own-interface/" rel="nofollow">http://www.dustindiaz.com/roll-out-your-own-interface/</a></p>
<p>In the comments over there someone link s to this great article over on the YUI site that explains in great detail the Module Pattern: <a href="http://yuiblog.com/blog/2007/06/12/module-pattern/" rel="nofollow">http://yuiblog.com/blog/2007/06/12/module-pattern/</a></p>
<p>It&#8217;s all starting to sink in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Underwood</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32132</link>
		<dc:creator>Matt Underwood</dc:creator>
		<pubDate>Thu, 04 Oct 2007 10:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32132</guid>
		<description>I've never seen this notation before,

var Article = Article ? Article : function() {...

or

var Article = Article &#124;&#124; function () {...

Is this to prevent Article from being redefined - for example if the article.js file was included more than once?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never seen this notation before,</p>
<p>var Article = Article ? Article : function() {&#8230;</p>
<p>or</p>
<p>var Article = Article || function () {&#8230;</p>
<p>Is this to prevent Article from being redefined - for example if the article.js file was included more than once?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2007-10-04 &#171; Simply&#8230; A User</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32123</link>
		<dc:creator>links for 2007-10-04 &#171; Simply&#8230; A User</dc:creator>
		<pubDate>Thu, 04 Oct 2007 00:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32123</guid>
		<description>[...] lixo.org :: JavaScript: Put everything in a namespace (tags: javascript namespace webdev code **) [...]</description>
		<content:encoded><![CDATA[<p>[...] lixo.org :: JavaScript: Put everything in a namespace (tags: javascript namespace webdev code **) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RJ Budzynski</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32110</link>
		<dc:creator>RJ Budzynski</dc:creator>
		<pubDate>Wed, 03 Oct 2007 19:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32110</guid>
		<description>You could have saved a few keystrokes by writing

var Article = Article &#124;&#124;  function () { ...</description>
		<content:encoded><![CDATA[<p>You could have saved a few keystrokes by writing</p>
<p>var Article = Article ||  function () { &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Villela</title>
		<link>http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32038</link>
		<dc:creator>Carlos Villela</dc:creator>
		<pubDate>Mon, 01 Oct 2007 01:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2007/09/14/javascript-put-everything-in-a-namespace/#comment-32038</guid>
		<description>Ajile looks really interesting indeed. Thanks!</description>
		<content:encoded><![CDATA[<p>Ajile looks really interesting indeed. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.682 seconds -->
