<?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: 19+ JavaScript Shorthand Coding Techniques</title>
	<atom:link href="http://www.jquery4u.com/javascript/shorthand-javascript-techniques/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/</link>
	<description>JQuery blog community sharing news, jQuery plugins, video tutorials, jQuery demos, code snippets and accredited web development author contributions.</description>
	<lastBuildDate>Thu, 23 May 2013 01:05:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tokimon</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42268</link>
		<dc:creator>Tokimon</dc:creator>
		<pubDate>Thu, 16 May 2013 11:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42268</guid>
		<description><![CDATA[Hi

#10: i propose:
for (var i = allImgs.length; i--;)

the reason is that your shorthand method indexes the properties/items in the array before looping. My proposed method just saves the number of items in the index variable and then continues untill it reaches 0, just like with the while loops. And counting is faster than indexing.]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>#10: i propose:<br />
for (var i = allImgs.length; i&#8211;;)</p>
<p>the reason is that your shorthand method indexes the properties/items in the array before looping. My proposed method just saves the number of items in the index variable and then continues untill it reaches 0, just like with the while loops. And counting is faster than indexing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miller</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42167</link>
		<dc:creator>Miller</dc:creator>
		<pubDate>Mon, 06 May 2013 23:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42167</guid>
		<description><![CDATA[Regex is extremely challenging, but it&#039;s also very necessary. I mean, can you imagine trying to do something like validate an e-mail address? It&#039;s an extremely powerful tool, although I admit I usually can just Google the expression I need rather than try to figure it out myself.]]></description>
		<content:encoded><![CDATA[<p>Regex is extremely challenging, but it&#8217;s also very necessary. I mean, can you imagine trying to do something like validate an e-mail address? It&#8217;s an extremely powerful tool, although I admit I usually can just Google the expression I need rather than try to figure it out myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miller</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42166</link>
		<dc:creator>Miller</dc:creator>
		<pubDate>Mon, 06 May 2013 23:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42166</guid>
		<description><![CDATA[Simple:


Longhand:
if(condition){
doSomething();
}


Shorthand:
condition &amp;&amp; doSomething();


For example:


if(document.getElementById(&#039;email&#039;).value == &#039;&#039;){
alert(&#039;Please enter an e-mail address.&#039;);
}


versus


document.getElementById(&#039;email&#039;).value == &#039;&#039; &amp;&amp; alert(&#039;Please enter an e-mail address&#039;);]]></description>
		<content:encoded><![CDATA[<p>Simple:</p>
<p>Longhand:<br />
if(condition){<br />
doSomething();<br />
}</p>
<p>Shorthand:<br />
condition &amp;&amp; doSomething();</p>
<p>For example:</p>
<p>if(document.getElementById(&#8216;email&#8217;).value == &#8221;){<br />
alert(&#8216;Please enter an e-mail address.&#8217;);<br />
}</p>
<p>versus</p>
<p>document.getElementById(&#8216;email&#8217;).value == &#8221; &amp;&amp; alert(&#8216;Please enter an e-mail address&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed Mansoor</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42161</link>
		<dc:creator>Mohammed Mansoor</dc:creator>
		<pubDate>Mon, 06 May 2013 17:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42161</guid>
		<description><![CDATA[gud piece of code :)]]></description>
		<content:encoded><![CDATA[<p>gud piece of code :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery4u</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42133</link>
		<dc:creator>jQuery4u</dc:creator>
		<pubDate>Sun, 05 May 2013 01:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42133</guid>
		<description><![CDATA[Hi Jeff, this one is covered in #2! :)]]></description>
		<content:encoded><![CDATA[<p>Hi Jeff, this one is covered in #2! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery4u</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42132</link>
		<dc:creator>jQuery4u</dc:creator>
		<pubDate>Sun, 05 May 2013 01:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42132</guid>
		<description><![CDATA[Nice Gary, i&#039;ve tweaked #4.]]></description>
		<content:encoded><![CDATA[<p>Nice Gary, i&#8217;ve tweaked #4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery4u</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42131</link>
		<dc:creator>jQuery4u</dc:creator>
		<pubDate>Sun, 05 May 2013 01:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42131</guid>
		<description><![CDATA[Thanks Aman, I guess this one is like #8?]]></description>
		<content:encoded><![CDATA[<p>Thanks Aman, I guess this one is like #8?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery4u</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42130</link>
		<dc:creator>jQuery4u</dc:creator>
		<pubDate>Sun, 05 May 2013 01:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42130</guid>
		<description><![CDATA[Nice, thanks John.]]></description>
		<content:encoded><![CDATA[<p>Nice, thanks John.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery4u</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42129</link>
		<dc:creator>jQuery4u</dc:creator>
		<pubDate>Sun, 05 May 2013 01:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42129</guid>
		<description><![CDATA[This one looks cool, whats the longhand version?]]></description>
		<content:encoded><![CDATA[<p>This one looks cool, whats the longhand version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery4u</title>
		<link>http://www.jquery4u.com/javascript/shorthand-javascript-techniques/#comment-42128</link>
		<dc:creator>jQuery4u</dc:creator>
		<pubDate>Sun, 05 May 2013 01:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jquery4u.com/?p=5591#comment-42128</guid>
		<description><![CDATA[Hi Davide, can you give an example of how to use this one?]]></description>
		<content:encoded><![CDATA[<p>Hi Davide, can you give an example of how to use this one?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
