<?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: A More Readable (Pythonic) Javascript Syntax?</title>
	<atom:link href="http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/</link>
	<description>-- aza &#124; ɐzɐ --</description>
	<lastBuildDate>Tue, 07 Sep 2010 21:31:38 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sex</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-11331</link>
		<dc:creator>Sex</dc:creator>
		<pubDate>Tue, 07 Sep 2010 01:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-11331</guid>
		<description>I used to think this about JavaScript when I first switched to if from Ruby, but I’ve grown to like the old girl and now it’s Ruby that looks unpleasant to my eyes.</description>
		<content:encoded><![CDATA[<p>I used to think this about JavaScript when I first switched to if from Ruby, but I’ve grown to like the old girl and now it’s Ruby that looks unpleasant to my eyes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: porno</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-11227</link>
		<dc:creator>porno</dc:creator>
		<pubDate>Sun, 05 Sep 2010 23:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-11227</guid>
		<description>I used to think this about JavaScript when I first switched to if from Ruby, but I’ve grown to like the old girl and now it’s Ruby that looks unpleasant to my eyes.</description>
		<content:encoded><![CDATA[<p>I used to think this about JavaScript when I first switched to if from Ruby, but I’ve grown to like the old girl and now it’s Ruby that looks unpleasant to my eyes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zayıflama Lida Fx15 Ve Biber Hapı Zlfvbh</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-10226</link>
		<dc:creator>Zayıflama Lida Fx15 Ve Biber Hapı Zlfvbh</dc:creator>
		<pubDate>Wed, 21 Jul 2010 16:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-10226</guid>
		<description>I used to think this about JavaScript when I first switched to if from Ruby, but I’ve grown to like the old girl and now it’s Ruby that looks unpleasant to my eyes.

I guess there’s no accounting for taste!</description>
		<content:encoded><![CDATA[<p>I used to think this about JavaScript when I first switched to if from Ruby, but I’ve grown to like the old girl and now it’s Ruby that looks unpleasant to my eyes.</p>
<p>I guess there’s no accounting for taste!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Holloway</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9753</link>
		<dc:creator>Thomas Holloway</dc:creator>
		<pubDate>Sat, 29 May 2010 17:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9753</guid>
		<description>Is there a reason this wasn&#039;t made into a compile time execution so pythonic scripts were compiled into native javascript. Sass is a great example of this usage of creating css from the generative tools (I of course use compass watch to monitor changes to my sass files). 

It would be nice to leverage this from the command line.</description>
		<content:encoded><![CDATA[<p>Is there a reason this wasn&#8217;t made into a compile time execution so pythonic scripts were compiled into native javascript. Sass is a great example of this usage of creating css from the generative tools (I of course use compass watch to monitor changes to my sass files). </p>
<p>It would be nice to leverage this from the command line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: termal jel</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9537</link>
		<dc:creator>termal jel</dc:creator>
		<pubDate>Tue, 25 May 2010 06:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9537</guid>
		<description>My eyes! The goggles do nothing.</description>
		<content:encoded><![CDATA[<p>My eyes! The goggles do nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CapsiPlex</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9447</link>
		<dc:creator>CapsiPlex</dc:creator>
		<pubDate>Wed, 12 May 2010 14:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9447</guid>
		<description>Thanks for share, weldone.</description>
		<content:encoded><![CDATA[<p>Thanks for share, weldone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web tasarımı</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9430</link>
		<dc:creator>web tasarımı</dc:creator>
		<pubDate>Wed, 12 May 2010 07:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9430</guid>
		<description>Tebrikler vallahi dua edeceksiniz bana.</description>
		<content:encoded><![CDATA[<p>Tebrikler vallahi dua edeceksiniz bana.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhuni</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9221</link>
		<dc:creator>jhuni</dc:creator>
		<pubDate>Sun, 02 May 2010 21:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9221</guid>
		<description>Since when did forcing the user to be sensitive to whitespace automatically make better code? Aza has clearly been in the Python world for far too long, personally I find the braces to be helpful if you have a good editor, because editors can line them up and they can give them their own color with syntax highlighting, so ultimately what you need is a good editor, not some script that changes JavaScript&#039;s syntax.

What JavaScript needs to make that &quot;triangle()&quot; function readable is a decent exponentation operator, not white-space sensitivity.

sub triangle($a, $b) { 
    ($a ** 2 + $b ** 2) ** 0.5 
}

For the second one the ternary operator and a loop statement that doesn&#039;t suck will suffice:

for 0..5 -&gt; $i { 
	document.getElementById(&quot;#el&quot; ~ i).innerHTML = ($count % 2) ?? &quot;World&quot; !! &quot;Hello&quot;
}

The JavaScript ternary operator is flawed and that makes it hard to read, the (? :) syntax is confusing, however, if you put (?? !!) its pretty easy to understand because (?) is always associated with true booleans and (!) is always associated with false ones.</description>
		<content:encoded><![CDATA[<p>Since when did forcing the user to be sensitive to whitespace automatically make better code? Aza has clearly been in the Python world for far too long, personally I find the braces to be helpful if you have a good editor, because editors can line them up and they can give them their own color with syntax highlighting, so ultimately what you need is a good editor, not some script that changes JavaScript&#8217;s syntax.</p>
<p>What JavaScript needs to make that &#8220;triangle()&#8221; function readable is a decent exponentation operator, not white-space sensitivity.</p>
<p>sub triangle($a, $b) {<br />
    ($a ** 2 + $b ** 2) ** 0.5<br />
}</p>
<p>For the second one the ternary operator and a loop statement that doesn&#8217;t suck will suffice:</p>
<p>for 0..5 -&gt; $i {<br />
	document.getElementById(&#8220;#el&#8221; ~ i).innerHTML = ($count % 2) ?? &#8220;World&#8221; !! &#8220;Hello&#8221;<br />
}</p>
<p>The JavaScript ternary operator is flawed and that makes it hard to read, the (? :) syntax is confusing, however, if you put (?? !!) its pretty easy to understand because (?) is always associated with true booleans and (!) is always associated with false ones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9023</link>
		<dc:creator>jay</dc:creator>
		<pubDate>Wed, 28 Apr 2010 08:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9023</guid>
		<description>Hello, would you mind if I use some of your sites content on http:/basicwebdesign.co.cc ? I&#039;ll be sure to keep the credit to you, along with a link back to your site. Thanks.</description>
		<content:encoded><![CDATA[<p>Hello, would you mind if I use some of your sites content on http:/basicwebdesign.co.cc ? I&#8217;ll be sure to keep the credit to you, along with a link back to your site. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://www.azarask.in/blog/post/making-javascript-syntax-not-suck/comment-page-1/#comment-9017</link>
		<dc:creator>jay</dc:creator>
		<pubDate>Wed, 28 Apr 2010 06:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.azarask.in/blog/?p=574#comment-9017</guid>
		<description>Hey do you mind if I use some of this content on http://www.basicwebdesign.co.cc in exchange for a link back to your site? Thanks</description>
		<content:encoded><![CDATA[<p>Hey do you mind if I use some of this content on <a href="http://www.basicwebdesign.co.cc" rel="nofollow">http://www.basicwebdesign.co.cc</a> in exchange for a link back to your site? Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
