<?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 Beautify</title>
	<atom:link href="http://ajaxian.com/archives/javascript-beautify/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/javascript-beautify</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Scott Schiller</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259219</link>
		<dc:creator>Scott Schiller</dc:creator>
		<pubDate>Thu, 22 Nov 2007 18:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259219</guid>
		<description>http://prettyprinter.de/ .. I think this one&#039;s been around since 2003 or something? A personal favourite.</description>
		<content:encoded><![CDATA[<p><a href="http://prettyprinter.de/" rel="nofollow">http://prettyprinter.de/</a> .. I think this one&#8217;s been around since 2003 or something? A personal favourite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vital</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259135</link>
		<dc:creator>Vital</dc:creator>
		<pubDate>Wed, 21 Nov 2007 11:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259135</guid>
		<description>Hi everybody!
So, i translate it from php to javascript :)

http://my.opera.com/Vital/blog/2007/11/21/javascript-beautify-on-javascript-translated</description>
		<content:encoded><![CDATA[<p>Hi everybody!<br />
So, i translate it from php to javascript :)</p>
<p><a href="http://my.opera.com/Vital/blog/2007/11/21/javascript-beautify-on-javascript-translated" rel="nofollow">http://my.opera.com/Vital/blog/2007/11/21/javascript-beautify-on-javascript-translated</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olle Lundberg</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259069</link>
		<dc:creator>Olle Lundberg</dc:creator>
		<pubDate>Tue, 20 Nov 2007 14:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259069</guid>
		<description>There is a disclaimer though - since it uses the built in function in the browser:

For best results, use Opera, Safari or Konqueror on this page. It partially works in Firefox (nested functions are not tidied, meaning that most scripts you want to tidy still end up unreadable), and fails to reformat code in IE and iCab.</description>
		<content:encoded><![CDATA[<p>There is a disclaimer though &#8211; since it uses the built in function in the browser:</p>
<p>For best results, use Opera, Safari or Konqueror on this page. It partially works in Firefox (nested functions are not tidied, meaning that most scripts you want to tidy still end up unreadable), and fails to reformat code in IE and iCab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olle Lundberg</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259068</link>
		<dc:creator>Olle Lundberg</dc:creator>
		<pubDate>Tue, 20 Nov 2007 14:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259068</guid>
		<description>Hmm, problem is that won&#039;t work well for huge scripts. Last time i tried it with a huge one it crashed. There is another one that works good with large scripts and is faster.
It uses to built in toString()-funtions in the browser and is like 4 lines long:
&lt;a href=&quot;http://www.howtocreate.co.uk/tutorials/jsexamples/JSTidy.html&quot; title=&quot;JSTidy&quot; rel=&quot;nofollow&quot;&gt;&gt;JSTidy&lt;/a&gt;
The script, however, has to be valid.</description>
		<content:encoded><![CDATA[<p>Hmm, problem is that won&#8217;t work well for huge scripts. Last time i tried it with a huge one it crashed. There is another one that works good with large scripts and is faster.<br />
It uses to built in toString()-funtions in the browser and is like 4 lines long:<br />
<a href="http://www.howtocreate.co.uk/tutorials/jsexamples/JSTidy.html" title="JSTidy" rel="nofollow">&gt;JSTidy</a><br />
The script, however, has to be valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259043</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Mon, 19 Nov 2007 23:51:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259043</guid>
		<description>I&#039;m with Kae in preferring ternary clauses (and I think most other people would agree, especially in the case of a beautifier which is meant to increase readability). Expanding ternary clauses wouldn&#039;t really be an option for these JavaScript beautifiers since ternary clauses tend to be embedded all over the place and there isn&#039;t an equivalent to a code block such as:

SomeLib.someMethod(someVar ? 37 : (someOtherVar &gt; 0 ? someOtherVar : -1));

without doing some pretty complex code analysis.</description>
		<content:encoded><![CDATA[<p>I&#8217;m with Kae in preferring ternary clauses (and I think most other people would agree, especially in the case of a beautifier which is meant to increase readability). Expanding ternary clauses wouldn&#8217;t really be an option for these JavaScript beautifiers since ternary clauses tend to be embedded all over the place and there isn&#8217;t an equivalent to a code block such as:</p>
<p>SomeLib.someMethod(someVar ? 37 : (someOtherVar &gt; 0 ? someOtherVar : -1));</p>
<p>without doing some pretty complex code analysis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259032</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Mon, 19 Nov 2007 19:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259032</guid>
		<description>@Simon, I know some people prefer the longer if...else form, but personally, I like short ternary code. I think the point of this is not to change code - just make it more readable.</description>
		<content:encoded><![CDATA[<p>@Simon, I know some people prefer the longer if&#8230;else form, but personally, I like short ternary code. I think the point of this is not to change code &#8211; just make it more readable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Jia</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259028</link>
		<dc:creator>Simon Jia</dc:creator>
		<pubDate>Mon, 19 Nov 2007 18:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259028</guid>
		<description>Awesome post. I just happen to be curious about a piece of google analytics code today and this helped quite a bit.
One minor thing i noticed though:
&lt;code&gt;
var a = b ? (c % d) : e[f];
&lt;/code&gt;
Looks like it doesn&#039;t translate this into a formal if and else clause. It&#039;s very minor to ppl who don&#039;t mind the shortened syntax.</description>
		<content:encoded><![CDATA[<p>Awesome post. I just happen to be curious about a piece of google analytics code today and this helped quite a bit.<br />
One minor thing i noticed though:<br />
<code><br />
var a = b ? (c % d) : e[f];<br />
</code><br />
Looks like it doesn&#8217;t translate this into a formal if and else clause. It&#8217;s very minor to ppl who don&#8217;t mind the shortened syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd Matzner</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259026</link>
		<dc:creator>Bernd Matzner</dc:creator>
		<pubDate>Mon, 19 Nov 2007 18:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259026</guid>
		<description>I really like Aptana for its code formatter - which does a good job at formatting JS code - it doesn&#039;t go as far as other Eclipse-based formatters for beautifying scripting language code  in terms of customizable formatting rules, but it still works nicely to help coding well-structured JS source.</description>
		<content:encoded><![CDATA[<p>I really like Aptana for its code formatter &#8211; which does a good job at formatting JS code &#8211; it doesn&#8217;t go as far as other Eclipse-based formatters for beautifying scripting language code  in terms of customizable formatting rules, but it still works nicely to help coding well-structured JS source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259024</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Mon, 19 Nov 2007 17:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259024</guid>
		<description>Nice post because I happen to have a use for this today. ;-)

Compared the output to the one that Kae Verens mentioned/wrote. The output is pretty similar other than that the new one does a better job at managing whitespace.</description>
		<content:encoded><![CDATA[<p>Nice post because I happen to have a use for this today. ;-)</p>
<p>Compared the output to the one that Kae Verens mentioned/wrote. The output is pretty similar other than that the new one does a better job at managing whitespace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://ajaxian.com/archives/javascript-beautify/comment-page-1#comment-259009</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Mon, 19 Nov 2007 11:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3020#comment-259009</guid>
		<description>Interesting.

Here&#039;s one I wrote a few months ago as a comparison. http://verens.com/archives/2007/02/23/javascript-beautifier/

Mine is actually written in JavaScript.</description>
		<content:encoded><![CDATA[<p>Interesting.</p>
<p>Here&#8217;s one I wrote a few months ago as a comparison. <a href="http://verens.com/archives/2007/02/23/javascript-beautifier/" rel="nofollow">http://verens.com/archives/2007/02/23/javascript-beautifier/</a></p>
<p>Mine is actually written in JavaScript.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

