<?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: Understanding JSLint output</title>
	<atom:link href="http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/feed" rel="self" type="application/rss+xml" />
	<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output</link>
	<description>all the other blogs have such cool names, I don't know one ...</description>
	<pubDate>Thu, 09 Feb 2012 16:34:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Oscar</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-414414</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Fri, 29 Oct 2010 10:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-414414</guid>
		<description>I would take issue with your assertion that it is bad to have no braces on a one-line if-clause. Removing redundant braces reduces code noise and makes it easier to read. 

Your fear is that if you write:

if (someCondition)
    doThis();

Some "future developer" will add a function like:

f (someCondition)
    doThis();
    andDoThat();

However, any decent IDE will indent this as:

f (someCondition)
    doThis();
andDoThat();

which should be obvious that it's not what you want. Also, it is fair to assume that the "future developer" actually understands the language. Put it less diplomatically, if he's daft enough to think you can have two functions in an unbracketed if-clause then he's going to make a whole bunch of other mistakes all over the place. Padding out your code with redundant braces is not going to make him a good programmer...

Rgds,
Oscar.</description>
		<content:encoded><![CDATA[<p>I would take issue with your assertion that it is bad to have no braces on a one-line if-clause. Removing redundant braces reduces code noise and makes it easier to read. </p>
<p>Your fear is that if you write:</p>
<p>if (someCondition)<br />
    doThis();</p>
<p>Some &#8220;future developer&#8221; will add a function like:</p>
<p>f (someCondition)<br />
    doThis();<br />
    andDoThat();</p>
<p>However, any decent IDE will indent this as:</p>
<p>f (someCondition)<br />
    doThis();<br />
andDoThat();</p>
<p>which should be obvious that it&#8217;s not what you want. Also, it is fair to assume that the &#8220;future developer&#8221; actually understands the language. Put it less diplomatically, if he&#8217;s daft enough to think you can have two functions in an unbracketed if-clause then he&#8217;s going to make a whole bunch of other mistakes all over the place. Padding out your code with redundant braces is not going to make him a good programmer&#8230;</p>
<p>Rgds,<br />
Oscar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cgimusic</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-411438</link>
		<dc:creator>cgimusic</dc:creator>
		<pubDate>Wed, 11 Aug 2010 09:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-411438</guid>
		<description>JSLint is mean. It said it had to stop checking my code because it found too many errors. Thanks for the info on ===. I already knew this from PHP but I wondered why JSLint was complaining. I don't want to change my code because its right. 1 and true need to be considered the same for my code to work. I have given up checking my JavaScript.</description>
		<content:encoded><![CDATA[<p>JSLint is mean. It said it had to stop checking my code because it found too many errors. Thanks for the info on ===. I already knew this from PHP but I wondered why JSLint was complaining. I don&#8217;t want to change my code because its right. 1 and true need to be considered the same for my code to work. I have given up checking my JavaScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freddie Mack</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-335340</link>
		<dc:creator>Freddie Mack</dc:creator>
		<pubDate>Mon, 24 Nov 2008 00:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-335340</guid>
		<description>I had to generate some variables for a multiple choice test on the fly and then test if they were checked ( in a loop to avoid 25 ifs ) 

Only eval(generatedvariable) === true could do it.

JSLint tells me "eval is evil." If it's a JS function, how can it be evil?

Just the facts, ma'am -- Jack Webb

Freddie Mack</description>
		<content:encoded><![CDATA[<p>I had to generate some variables for a multiple choice test on the fly and then test if they were checked ( in a loop to avoid 25 ifs ) </p>
<p>Only eval(generatedvariable) === true could do it.</p>
<p>JSLint tells me &#8220;eval is evil.&#8221; If it&#8217;s a JS function, how can it be evil?</p>
<p>Just the facts, ma&#8217;am &#8212; Jack Webb</p>
<p>Freddie Mack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lazy_Coder</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-313519</link>
		<dc:creator>Lazy_Coder</dc:creator>
		<pubDate>Fri, 17 Oct 2008 12:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-313519</guid>
		<description>This is a fantastic. Thanks Wolfram.</description>
		<content:encoded><![CDATA[<p>This is a fantastic. Thanks Wolfram.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiger-222</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-302116</link>
		<dc:creator>Tiger-222</dc:creator>
		<pubDate>Wed, 01 Oct 2008 23:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-302116</guid>
		<description>Thank you for these indications !</description>
		<content:encoded><![CDATA[<p>Thank you for these indications !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indiehead</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-223507</link>
		<dc:creator>indiehead</dc:creator>
		<pubDate>Mon, 23 Jun 2008 14:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-223507</guid>
		<description>Thanks for posting this, thankfully my code didn't get too harsh a treatment from JSLint but it's good to learn something new.

Well done a keep up the good work,

p.s.

any ideas whether there's a command line or integrated version of JSLint available so we don't have to copy-n-paste every time?

appreciate it,


John.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this, thankfully my code didn&#8217;t get too harsh a treatment from JSLint but it&#8217;s good to learn something new.</p>
<p>Well done a keep up the good work,</p>
<p>p.s.</p>
<p>any ideas whether there&#8217;s a command line or integrated version of JSLint available so we don&#8217;t have to copy-n-paste every time?</p>
<p>appreciate it,</p>
<p>John.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: João Prado Maia&#8217;s Weblog &#187; Random interesting links</title>
		<link>http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output/comment-page-1#comment-140297</link>
		<dc:creator>João Prado Maia&#8217;s Weblog &#187; Random interesting links</dc:creator>
		<pubDate>Fri, 15 Feb 2008 23:04:57 +0000</pubDate>
		<guid isPermaLink="false">http://wolfram.kriesing.de/blog/index.php/2007/understanding-jslint-output#comment-140297</guid>
		<description>[...] Understanding the output generated by JSLint [...]</description>
		<content:encoded><![CDATA[<p>[...] Understanding the output generated by JSLint [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

