<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Infrequently Noted &#187; closure</title>
	<atom:link href="http://infrequently.org/tag/closure/feed/" rel="self" type="application/rss+xml" />
	<link>http://infrequently.org</link>
	<description></description>
	<lastBuildDate>Fri, 18 Nov 2011 16:25:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A Bit of Closure</title>
		<link>http://infrequently.org/2009/11/a-bit-of-closure/</link>
		<comments>http://infrequently.org/2009/11/a-bit-of-closure/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 19:03:36 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://alex.dojotoolkit.org/2009/11/a-bit-of-closure/</guid>
		<description><![CDATA[So from time to time I&#8217;d wondered what all the brilliant DHTML hackers that Google had hired were up to. Obviously, building products. Sure. But I knew these guys. They do infrastructure, not just kludges and one-off&#8217;s. You don&#8217;t build a product like Gmail and have no significant UI infrastructure to show for it. Today [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://2.bp.blogspot.com/_EuCTzLdp3vE/SvIwmKttuCI/AAAAAAAAC1U/h9AdUMdkEO4/s200/closure.png" align="right"/></p>
<p>So from time to time I&#8217;d wondered what all the brilliant DHTML hackers that Google had hired were up to. Obviously, building products. Sure. But I knew these guys. They do infrastructure, not just kludges and one-off&#8217;s. You don&#8217;t build a product like Gmail and have no significant UI infrastructure to show for it.</p>
<p>Today they <a href="http://code.google.com/closure/library/">flung the doors open on Closure</a> and it&#8217;s supporting <a href="http://code.google.com/closure/compiler/">compiler</a>. These tools evolved together, and it shows. Closure code eschews many of the space-saving shortcuts that Dojo code employs because the compiler is so sophisticated that it can shorten nearly all variables, eliminate dead code, and even do type inference (based on JSDoc comments and static analysis).</p>
<p>There&#8217;s a <em>ton</em> of great code in Closure, so go give the <a href="http://closure-library.googlecode.com/svn/trunk/closure/goog/docs/index.html">docs a look</a> and, if you&#8217;re into that kind of thing, read the <a href="http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html">official blog post</a> for a sense of what makes Closure so awesome.</p>
<p>It&#8217;s interesting to me how much it feels like a more advanced version of Dojo in many ways. There&#8217;s a familiar package system, the widgets are significantly more mature, and <a href="http://www.google.com/profiles/jparent">Julie</a> and <a href="http://www.google.com/profiles/ojan.vafai">Ojan</a>&#8216;s Editor component rocks. The APIs will feel familiar (if verbose) to Dojo users, the class hierarchies seem natural, and Closure even uses <a href="http://alex.dojotoolkit.org/2009/03/dojo-13b3-is-out/">Acme</a>, the Dojo CSS selector engine. It&#8217;s impressive work and congrats are in order for <a href="http://erik.eae.net/">Arv</a>, <a href="http://pupius.co.uk/blog/">Dan</a>, <a href="http://me.eae.net/">Emil</a>, <a href="http://thebode.blogspot.com/">Attila</a>, <a href="http://www.nick-santos.com/">Nick</a>, <a href="http://www.google.com/profiles/jparent">Julie</a>, <a href="http://www.google.com/profiles/ojan.vafai">Ojan</a>, and everyone else who worked so hard to build such an impressive system and fight to get it Open Source&#8217;d.</p>
]]></content:encoded>
			<wfw:commentRss>http://infrequently.org/2009/11/a-bit-of-closure/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

