<?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: 24 JavaScript Best Practices for Beginners</title>
	<atom:link href="http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/feed/" rel="self" type="application/rss+xml" />
	<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/</link>
	<description>Web Development &#38; Design Tutorials</description>
	<lastBuildDate>Sun, 21 Mar 2010 12:26:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Damian</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-227038</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Wed, 10 Mar 2010 00:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-227038</guid>
		<description>Nice Article!!!!</description>
		<content:encoded><![CDATA[<p>Nice Article!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D. Silvius</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-204935</link>
		<dc:creator>D. Silvius</dc:creator>
		<pubDate>Mon, 15 Feb 2010 08:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-204935</guid>
		<description>1. var container = document.getElementById(&#039;container&#039;);  
   2. for(var i = 0, len = someArray.length; i &lt; len;  i++) {  
   3.    container.innerHtml += &#039;my number: &#039; + i;  
   4.    console.log(i);  
   5. }  

Instead if using len=somearray.length in the for loop, please move this outside as a variable and use it.  Every time, finding the length is not a good idea.

 1. var container = document.getElementById(&#039;container&#039;);  
     var iArrLenTmp = someArray.length;
   2. for(var i = 0, len = iArrLenTmp; i &lt; len;  i++) {  
   3.    container.innerHtml += &#039;my number: &#039; + i;  
   4.    console.log(i);  
   5. }</description>
		<content:encoded><![CDATA[<p>1. var container = document.getElementById(&#8216;container&#8217;);<br />
   2. for(var i = 0, len = someArray.length; i &lt; len;  i++) {<br />
   3.    container.innerHtml += &#039;my number: &#039; + i;<br />
   4.    console.log(i);<br />
   5. }  </p>
<p>Instead if using len=somearray.length in the for loop, please move this outside as a variable and use it.  Every time, finding the length is not a good idea.</p>
<p> 1. var container = document.getElementById(&#039;container&#039;);<br />
     var iArrLenTmp = someArray.length;<br />
   2. for(var i = 0, len = iArrLenTmp; i &lt; len;  i++) {<br />
   3.    container.innerHtml += &#039;my number: &#039; + i;<br />
   4.    console.log(i);<br />
   5. }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-185786</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Sun, 31 Jan 2010 18:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-185786</guid>
		<description>Great stuff, Jeff!

Only one suggestion. I know I use the term &quot;self-executing functions&quot; too, but at some point saw Doug Crockford using the term &quot;immediate function&quot; and it kinda rolls out the tongue easier :)</description>
		<content:encoded><![CDATA[<p>Great stuff, Jeff!</p>
<p>Only one suggestion. I know I use the term &#8220;self-executing functions&#8221; too, but at some point saw Doug Crockford using the term &#8220;immediate function&#8221; and it kinda rolls out the tongue easier <img src='http://net.tutsplus.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake Tallos</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-185737</link>
		<dc:creator>Blake Tallos</dc:creator>
		<pubDate>Sun, 31 Jan 2010 17:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-185737</guid>
		<description>Nice Article, Jeff. It&#039;s good to see some of the best/bad practices of Javascript.</description>
		<content:encoded><![CDATA[<p>Nice Article, Jeff. It&#8217;s good to see some of the best/bad practices of Javascript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Itsashirt T shirts</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-162801</link>
		<dc:creator>Itsashirt T shirts</dc:creator>
		<pubDate>Fri, 15 Jan 2010 19:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-162801</guid>
		<description>I leave the scripting to the scripters, I am the graphic dude</description>
		<content:encoded><![CDATA[<p>I leave the scripting to the scripters, I am the graphic dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tot2ivn</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-154625</link>
		<dc:creator>tot2ivn</dc:creator>
		<pubDate>Tue, 29 Dec 2009 18:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-154625</guid>
		<description>Nice article for beginners !</description>
		<content:encoded><![CDATA[<p>Nice article for beginners !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garro</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-146142</link>
		<dc:creator>Garro</dc:creator>
		<pubDate>Wed, 16 Dec 2009 01:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-146142</guid>
		<description>nice one Jeff</description>
		<content:encoded><![CDATA[<p>nice one Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diogo Silva</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-145803</link>
		<dc:creator>Diogo Silva</dc:creator>
		<pubDate>Mon, 14 Dec 2009 12:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-145803</guid>
		<description>Hi,

in the exemple 13 in line 2 Better 

lastName = &#039;Way&#039;

correct:

lastName: &#039;Way&#039;

hugs
[]&#039;s</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>in the exemple 13 in line 2 Better </p>
<p>lastName = &#8216;Way&#8217;</p>
<p>correct:</p>
<p>lastName: &#8216;Way&#8217;</p>
<p>hugs<br />
[]&#8217;s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eli</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-115841</link>
		<dc:creator>Eli</dc:creator>
		<pubDate>Tue, 06 Oct 2009 19:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-115841</guid>
		<description>Another Great book is JavaScript the Missing Manual, it includes some jquery and is an overall very easy read. The Author make real life connections, and adds a little humor.</description>
		<content:encoded><![CDATA[<p>Another Great book is JavaScript the Missing Manual, it includes some jquery and is an overall very easy read. The Author make real life connections, and adds a little humor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: เพชร</title>
		<link>http://net.tutsplus.com/tutorials/javascript-ajax/24-javascript-best-practices-for-beginners/comment-page-3/#comment-110278</link>
		<dc:creator>เพชร</dc:creator>
		<pubDate>Wed, 23 Sep 2009 01:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://net.tutsplus.com/?p=5399#comment-110278</guid>
		<description>very helpful for beginners</description>
		<content:encoded><![CDATA[<p>very helpful for beginners</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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