<?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: Why Use JSLint?</title>
	<atom:link href="http://mike.kaply.com/2007/01/11/why-use-jslint/feed/" rel="self" type="application/rss+xml" />
	<link>http://mike.kaply.com/2007/01/11/why-use-jslint/</link>
	<description>Mozilla, money, microformats and more</description>
	<lastBuildDate>Tue, 15 May 2012 05:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Kwang Yul Seo</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-73</link>
		<dc:creator>Kwang Yul Seo</dc:creator>
		<pubDate>Thu, 08 Mar 2007 03:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-73</guid>
		<description>Is there any use case which makes the comparison operator == meaningful? I&#039;ve always wondered why such an operator exists. Automatic type conversion makes me crazy when debugging.</description>
		<content:encoded><![CDATA[<p>Is there any use case which makes the comparison operator == meaningful? I&#8217;ve always wondered why such an operator exists. Automatic type conversion makes me crazy when debugging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wladimir Palant</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-72</link>
		<dc:creator>Wladimir Palant</dc:creator>
		<pubDate>Wed, 17 Jan 2007 23:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-72</guid>
		<description>Correction to the above: I did find a few minor glitches with JSLint. Yet all the noise that it outputs doesn&#039;t exactly make it easy...</description>
		<content:encoded><![CDATA[<p>Correction to the above: I did find a few minor glitches with JSLint. Yet all the noise that it outputs doesn&#8217;t exactly make it easy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wladimir Palant</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-71</link>
		<dc:creator>Wladimir Palant</dc:creator>
		<pubDate>Mon, 15 Jan 2007 10:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-71</guid>
		<description>Michael, I always run Firefox with javascript.options.strict switched on. It catches undeclared variables and some other common mistakes (like mistyping a property name which causes &quot;reference to undefined property&quot; warnings). I tried JSLint but some parts of the enforced syntax are pretty ridiculous - like mandatory block parentheses and using === instead of ==. Most warning types cannot be disabled which causes lots of noise, so JSLint is pretty useless for me right now. And I really can&#039;t see the added value if compared to Gecko&#039;s own warnings.</description>
		<content:encoded><![CDATA[<p>Michael, I always run Firefox with javascript.options.strict switched on. It catches undeclared variables and some other common mistakes (like mistyping a property name which causes &#8220;reference to undefined property&#8221; warnings). I tried JSLint but some parts of the enforced syntax are pretty ridiculous &#8211; like mandatory block parentheses and using === instead of ==. Most warning types cannot be disabled which causes lots of noise, so JSLint is pretty useless for me right now. And I really can&#8217;t see the added value if compared to Gecko&#8217;s own warnings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Williams</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-70</link>
		<dc:creator>Jon Williams</dc:creator>
		<pubDate>Fri, 12 Jan 2007 00:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-70</guid>
		<description>&lt;i&gt;using == where I should use ===&lt;/i&gt;
Hm, I didn&#039;t realize javascript had that operator. How does it know when a lazy comparison is bad though?

&lt;i&gt;Do you see the problem there? Because I didn’t have “var” in front of toolbar, I was affecting the global variable toolbar&lt;/i&gt;

I should really look into this because I had &lt;a href=&quot;http://wizardishungry.com/blog/archive/when-to-use-google-to-solve-your-problems-and-when-to-solve-things-yourself&quot; rel=&quot;nofollow&quot;&gt;the same kind of problem&lt;/a&gt;, but it only caused negative side effects in msie *and* it was in Prototype&#039;s try{} block which discards exceptions. Hooray. I blame my undergraduate CS education for not teaching me about lint ... or version control, or MVC, or relational databases or...</description>
		<content:encoded><![CDATA[<p><i>using == where I should use ===</i><br />
Hm, I didn&#8217;t realize javascript had that operator. How does it know when a lazy comparison is bad though?</p>
<p><i>Do you see the problem there? Because I didn’t have “var” in front of toolbar, I was affecting the global variable toolbar</i></p>
<p>I should really look into this because I had <a href="http://wizardishungry.com/blog/archive/when-to-use-google-to-solve-your-problems-and-when-to-solve-things-yourself" rel="nofollow">the same kind of problem</a>, but it only caused negative side effects in msie *and* it was in Prototype&#8217;s try{} block which discards exceptions. Hooray. I blame my undergraduate CS education for not teaching me about lint &#8230; or version control, or MVC, or relational databases or&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-69</link>
		<dc:creator>J</dc:creator>
		<pubDate>Thu, 11 Jan 2007 22:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-69</guid>
		<description>http://kb.mozillazine.org/Javascript.options.strict will help you as well. :)</description>
		<content:encoded><![CDATA[<p><a href="http://kb.mozillazine.org/Javascript.options.strict" rel="nofollow">http://kb.mozillazine.org/Javascript.options.strict</a> will help you as well. <img src='http://mike.kaply.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gopalarathnam Venkatesan</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-68</link>
		<dc:creator>Gopalarathnam Venkatesan</dc:creator>
		<pubDate>Thu, 11 Jan 2007 17:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-68</guid>
		<description>JSLint checks for the coding styles to match with Douglas Crockford&#039;s guide [http://javascript.crockford.com/code.html] and hence you should break after an operator ;)  Also, I believe it reports a warning when using ++.

That said aside, its always better to declare variables (using the var keyword) at the start of the function since JavaScript has function scope, which would emphasize this.

I would prefer:

function f() {
    var i, // some more vars

    // ...
    for (i = 0; // ...)
    // ...
}

instead of:

function f() {
    // ...
    for (var i = 0; // ...)
    // ...
}</description>
		<content:encoded><![CDATA[<p>JSLint checks for the coding styles to match with Douglas Crockford&#8217;s guide [http://javascript.crockford.com/code.html] and hence you should break after an operator <img src='http://mike.kaply.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   Also, I believe it reports a warning when using ++.</p>
<p>That said aside, its always better to declare variables (using the var keyword) at the start of the function since JavaScript has function scope, which would emphasize this.</p>
<p>I would prefer:</p>
<p>function f() {<br />
    var i, // some more vars</p>
<p>    // &#8230;<br />
    for (i = 0; // &#8230;)<br />
    // &#8230;<br />
}</p>
<p>instead of:</p>
<p>function f() {<br />
    // &#8230;<br />
    for (var i = 0; // &#8230;)<br />
    // &#8230;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Turner</title>
		<link>http://mike.kaply.com/2007/01/11/why-use-jslint/#comment-67</link>
		<dc:creator>Doug Turner</dc:creator>
		<pubDate>Thu, 11 Jan 2007 16:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kaply.com/weblog/2007/01/11/why-use-jslint/#comment-67</guid>
		<description>Do you know anyone that has tried to run mozilla js code through jslint?</description>
		<content:encoded><![CDATA[<p>Do you know anyone that has tried to run mozilla js code through jslint?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  mike.kaply.com/2007/01/11/why-use-jslint/feed/ ) in 0.91549 seconds, on May 16th, 2012 at 11:03 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 17th, 2012 at 12:03 am UTC -->
