<?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: JavaScript: Bad Practices</title>
	<atom:link href="http://james.padolsey.com/javascript/javascript-bad-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/javascript-bad-practices/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 29 Aug 2010 12:37:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bryan Migliorisi</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-23502</link>
		<dc:creator>Bryan Migliorisi</dc:creator>
		<pubDate>Mon, 02 Nov 2009 03:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-23502</guid>
		<description>@John

&#039;JavaScript: The Good Parts&#039; by Douglas Crockford is great, but somewhat advanced.

http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742</description>
		<content:encoded><![CDATA[<p>@John</p>
<p>&#8216;JavaScript: The Good Parts&#8217; by Douglas Crockford is great, but somewhat advanced.</p>
<p><a href="http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742">http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-23473</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 01 Nov 2009 18:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-23473</guid>
		<description>Very nice article. By the way, can you tell us which book do you prefer to learn advanced JavaScript and things like in this article?
Thank you.</description>
		<content:encoded><![CDATA[<p>Very nice article. By the way, can you tell us which book do you prefer to learn advanced JavaScript and things like in this article?<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zafada</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-22525</link>
		<dc:creator>zafada</dc:creator>
		<pubDate>Mon, 19 Oct 2009 12:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-22525</guid>
		<description>I agree with some but not all.  I do not agree with the use of third party libraries, period.  Inline JS is sometimes necessary so remember that.</description>
		<content:encoded><![CDATA[<p>I agree with some but not all.  I do not agree with the use of third party libraries, period.  Inline JS is sometimes necessary so remember that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Eagle</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-21765</link>
		<dc:creator>Nate Eagle</dc:creator>
		<pubDate>Wed, 07 Oct 2009 18:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-21765</guid>
		<description>Just wanted to say that I found the format of this entry--here&#039;s what NOT to do--very helpful as a javascript beginner. I commit, to one degree or another, ALL of these sins in my javascript, and it&#039;s very useful for me to see the signs of the way I do things now with a follow-up pointer to an improved method. Thanks!</description>
		<content:encoded><![CDATA[<p>Just wanted to say that I found the format of this entry&#8211;here&#8217;s what NOT to do&#8211;very helpful as a javascript beginner. I commit, to one degree or another, ALL of these sins in my javascript, and it&#8217;s very useful for me to see the signs of the way I do things now with a follow-up pointer to an improved method. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Garcia</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-21683</link>
		<dc:creator>Jay Garcia</dc:creator>
		<pubDate>Tue, 06 Oct 2009 12:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-21683</guid>
		<description>@Dave,

Lea is right.  If you know and follow the Java variable/method naming convention, you can&#039;t go wrong.</description>
		<content:encoded><![CDATA[<p>@Dave,</p>
<p>Lea is right.  If you know and follow the Java variable/method naming convention, you can&#8217;t go wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea Verou</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-20671</link>
		<dc:creator>Lea Verou</dc:creator>
		<pubDate>Sat, 19 Sep 2009 08:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-20671</guid>
		<description>&lt;blockquote&gt;Then what’s your quick visual distinction between a variable and a method, hmm?&lt;/blockquote&gt;

The entirely different semantics of the name?</description>
		<content:encoded><![CDATA[<blockquote><p>Then what’s your quick visual distinction between a variable and a method, hmm?</p></blockquote>
<p>The entirely different semantics of the name?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-20584</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 17 Sep 2009 17:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-20584</guid>
		<description>&quot;Only functions that are constructors should be identified with an initial captial letter, not regular functions.&quot;

Then what&#039;s your quick visual distinction between a variable and a method, hmm?</description>
		<content:encoded><![CDATA[<p>&#8220;Only functions that are constructors should be identified with an initial captial letter, not regular functions.&#8221;</p>
<p>Then what&#8217;s your quick visual distinction between a variable and a method, hmm?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-19760</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Sat, 05 Sep 2009 04:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-19760</guid>
		<description>I especially agree with your Having long HTML strings in your JavaScript point.  Not only does inserting HTML with JavaScript rob you of any SEO value for some search engines, but it&#039;s a bad practice if a user would have JavaScript disabled.  

Overall, this is a great list.  Thanks</description>
		<content:encoded><![CDATA[<p>I especially agree with your Having long HTML strings in your JavaScript point.  Not only does inserting HTML with JavaScript rob you of any SEO value for some search engines, but it&#8217;s a bad practice if a user would have JavaScript disabled.  </p>
<p>Overall, this is a great list.  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maicon</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-19251</link>
		<dc:creator>Maicon</dc:creator>
		<pubDate>Fri, 28 Aug 2009 12:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-19251</guid>
		<description>Very useful and elucidative article. Thank you for share.</description>
		<content:encoded><![CDATA[<p>Very useful and elucidative article. Thank you for share.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://james.padolsey.com/javascript/javascript-bad-practices/comment-page-1/#comment-19179</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 27 Aug 2009 11:21:22 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=1119#comment-19179</guid>
		<description>@&lt;a href=&quot;#comment-19174&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Sergey Chikuyonok&lt;/strong&gt;&lt;/a&gt;, yes, using &lt;code&gt;+=&lt;/code&gt; on &lt;code&gt;innerHTML&lt;/code&gt; is generally a bad idea but that wasn&#039;t the point of the snippet - I was just demonstrating the effectiveness of joining HTML strings using a native method. And, frankly, on the inline-event-handlers issue, it&#039;s each to his own - I for one don&#039;t think the marginal performance benefits of inline handlers outweigh the benefit in having fully unobtrusive handlers. 

@&lt;a href=&quot;#comment-19176&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Mark van &#039;t Zet&lt;/strong&gt;&lt;/a&gt;, so who exactly are you accommodating to in your comments? Any proficient JavaScript developer should understand the following construct:

&lt;pre lang=&quot;javascript&quot;&gt;
var fn = (function(){
    var something = {};
    return function(){
        // stuff
    };
})();
&lt;/pre&gt;

It&#039;s illogical to constantly assume that the reader of your code is just a beginner - you should assume they have a very good knowledge of the language.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-19174"><strong>Sergey Chikuyonok</strong></a>, yes, using <code>+=</code> on <code>innerHTML</code> is generally a bad idea but that wasn&#8217;t the point of the snippet &#8211; I was just demonstrating the effectiveness of joining HTML strings using a native method. And, frankly, on the inline-event-handlers issue, it&#8217;s each to his own &#8211; I for one don&#8217;t think the marginal performance benefits of inline handlers outweigh the benefit in having fully unobtrusive handlers. </p>
<p>@<a href="#comment-19176"><strong>Mark van &#8216;t Zet</strong></a>, so who exactly are you accommodating to in your comments? Any proficient JavaScript developer should understand the following construct:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span class="kw2">var</span> fn <span class="sy0">=</span> <span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
    <span class="kw2">var</span> something <span class="sy0">=</span> <span class="br0">&#123;</span><span class="br0">&#125;</span><span class="sy0">;</span>
    <span class="kw1">return</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
        <span class="co1">// stuff</span>
    <span class="br0">&#125;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>It&#8217;s illogical to constantly assume that the reader of your code is just a beginner &#8211; you should assume they have a very good knowledge of the language.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
