<?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>Chris Pratt // Metaphors Be With You &#187; ajax</title>
	<atom:link href="http://www.chrisdpratt.com/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisdpratt.com</link>
	<description>Random thoughts on random topics. What? You wanted predictability?</description>
	<lastBuildDate>Fri, 31 Jul 2009 14:58:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rails is a Ghetto?</title>
		<link>http://www.chrisdpratt.com/2008/01/01/rails-is-a-ghetto/</link>
		<comments>http://www.chrisdpratt.com/2008/01/01/rails-is-a-ghetto/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 03:35:45 +0000</pubDate>
		<dc:creator>chrisdpratt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.chrisdpratt.com/2008/01/01/rails-is-a-ghetto/</guid>
		<description><![CDATA[Just noticed Zed Shaw&#8217;s soon to be infamous rant on Rails and the Rails community. As a little background, Zed Shaw is of course the creator of Mongrel, the web server that has become the staple deployment apparatus for Rails.
Zed&#8217;s rant is long and boisterous; typically, I view such ranting with a healthy dose of [...]]]></description>
			<content:encoded><![CDATA[<p>Just noticed <a href="http://www.zedshaw.com/rants/rails_is_a_ghetto.html">Zed Shaw&#8217;s soon to be infamous rant on Rails and the Rails community</a>. As a little background, Zed Shaw is of course the creator of Mongrel, the web server that has become the staple deployment apparatus for Rails.</p>
<p>Zed&#8217;s rant is long and boisterous; typically, I view such ranting with a healthy dose of skepticism. However, some of what he says in the post makes a little too much sense to shrug off as just malevolent lashing-out.</p>
<p>I jumped on the Rails bandwagon mid-last-year, and to me, it became a salvation of sorts. I experienced a programming environment that simultaneously gave me power to create and joy in development. Often those two things are toss ups, where one need either be limited or lulled into a near comatose state.</p>
<p>However, as I&#8217;ve worked with Rails more, I&#8217;ve realized that while it may have charted new frontier (being one of the first enterprise-level web frameworks for the common man), it is not the end all be all that many see it as.</p>
<p>Lately, I&#8217;ve begun development on a project at work that was slated to be developed in Django. This meant that I had to take a break from Rails and learn a new framework, a new language at that since I was not familiar with Python previously. Coming from Rails, I had a slight bias to Django from the start. For the most part, the two kids play nice, but every so often someone would post on the virtues of one of the two over the other. Django, in particular, seemed a bit of an upstart to me, with users and even the creators themselves often making grandiose claims of its superiority.</p>
<p>Initially, I found myself recoiling from many of Django&#8217;s &#8220;ways&#8221;. URLconfs made me want to kick someone&#8217;s ass. It was not until I got to creating templates in Django that it began to earn some respect in my eyes, but the clencher was the first time I tried to implement some AJAX.</p>
<p>Back when I was working on the TipDish project with the group from Startup Weekend Houston, I remember the hell I went through trying to implement AJAX in Rails. For some reason, I had a real mental with it. I knew how to do what I was trying to do outside of Rails, but I just couldn&#8217;t seem to get it working the Rails way inside Rails. I devoted two full nights of scouring the web and lurking in IRC before I found the answers I needed.</p>
<p>Django, I was sure, would be worse, knowing that documentation is more sparse for Django than Rails. I anticipated an even more hellish encounter with this framework, and at first, I seemed to receive it. I searched online for information to little avail. I found many references to Dojo and its imminent inclusion in Django. I looked at Dojo and cried. (As an aside in case I happen to the catch the notice of anyone on the Django development team: *please*, if you&#8217;re going to package a javascript framework, let it be anything but Dojo.)</p>
<p>Then, a miraculous light of entered my mind, complete with angels strumming on harps. I realized I was free. I could pick whatever javascript framework I wanted, or none at all. I could do it anyway I liked. I was not restricted into using built in functions or special code. And that&#8217;s when Django suddenly took on a whole new light for me. Here was something that did just what it was supposed to do: take care of all the cruft, so I don&#8217;t have to. After that, it get&#8217;s out of the way and let&#8217;s you do your thing.</p>
<p>Rails, for all it&#8217;s beauty, is controlling. It wants you to do things its way. Indeed, many times, I felt as if I was learning a new language just from the framework. Rails is training wheels. Even those that use it and swear by it seem to rewrite most of it as their apps grow, leaving very little Rails left to Rails. As Zed points out in his rant, the name itself admits to this; you&#8217;re supposed to stay on the &#8220;rails&#8221;.</p>
<p>Now, all this is not to say that I&#8217;m rejecting Rails now. I believe it will stay in my arsenal for quite some while, and I also believe it does have a lot of merit to itself. What I am saying is that the honeymoon period is over and I&#8217;m no longer star-struck in love with Rails. I&#8217;m also saying that the drastic shift of Zed Shaw against the Rails community (while probably not to be unexpected from Zed), should still be seen as an omen of sorts. There does seem to be a little too much &#8220;headiness&#8221; in the Rails community, where some people seem to feel they are just too damn smart to coexist with the rest of us. It&#8217;s not representative of the entire community, but it&#8217;s there, and it should be dealt with.</p>
<p>That said, check out Zed&#8217;s rant. If nothing else, it makes an entertaining read. And, if you haven&#8217;t already, give Django a look. You can never have too many tools in your arsenal as a web developer and its got some real power.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisdpratt.com/2008/01/01/rails-is-a-ghetto/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Associated Press Internet Writer Doesn&#8217;t Know Jack About AJAX</title>
		<link>http://www.chrisdpratt.com/2007/07/09/associated-press-internet-writer-doesnt-know-jack-about-ajax/</link>
		<comments>http://www.chrisdpratt.com/2007/07/09/associated-press-internet-writer-doesnt-know-jack-about-ajax/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 01:49:28 +0000</pubDate>
		<dc:creator>chrisdpratt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://chrisdpratt.webfactional.com/?p=14</guid>
		<description><![CDATA[Wow. The Associated Press recently ran with an article detailing how Nielson will be dropping pageviews as a meaningful site metric. More interesting than that tidbit of news, though, is the supreme lack of technical expertise from the AP Reporter covering the article, Anick Jesdanun:
&#8220;Currently, sites and advertisers often use page views, a figure that [...]]]></description>
			<content:encoded><![CDATA[<p>Wow. The Associated Press recently ran with <a href="http://news.yahoo.com/s/ap/20070709/ap_on_hi_te/online_measurements">an article detailing how Nielson will be dropping pageviews as a meaningful site metric</a>. More interesting than that tidbit of news, though, is the supreme lack of technical expertise from the AP Reporter covering the article, Anick Jesdanun:</p>
<blockquote><p>&#8220;Currently, sites and advertisers often use page views, a figure that reflects the number of Web pages a visitor pulls from a site. However, Yahoo Inc. and others are increasingly using a <em>software trick called Ajax</em> to improve the user experience. It allows sites to update data automatically and continually, without users needing to pull up new pages.&#8221; (emphasis mine)</p></blockquote>
<p>A &#8220;software trick called Ajax&#8221;? Did the reporter in question even bother to research the story details? For those who have been locked in a closet for the past few years or have some other good reason for not knowing what AJAX is: AJAX is an acronym for Asychronous Javascript and XML. It is an application of Javascript, a client-side scripting language, not a language in an of itself. In fact, AJAX is, most simply, centered around a single Javascript class, XMLHttpRequest. XMLHttpRequest allows the retrieval of remote documents, principally XML documents, once the page has already been loaded. This means that content can be delivered on the fly, without a page refresh, which opens up a whole world of possibilities that were previously only pipe-dreams. &#8216;AJAX&#8217; as a term, simply describes this process &#8211; i.e. the &#8216;asynchronous&#8217; retrieval of external data that most normally falls in either the Javascript or XML categories.</p>
<p>What is most frightening to me is that anyone who hangs around on the web for more than 5 minutes should have at least heard the term before, and one would think that an <em>Internet</em> writer for the Associate Press would have even more familiarity with the concept. Even more disheartening is the absolute ease of finding out more about AJAX even if you knew nothing about it. Google &#8216;ajax&#8217; and the first hit is a Wikipedia article that would at least provide enough understanding to realize that it&#8217;s not a &#8217;software trick&#8217;.</p>
<p>Maybe I&#8217;m making too much of this. I have a penchant for doing that. Nevertheless, there&#8217;s really no excuse for such a glaring error, especially when it comes to what is supposed to be the World&#8217;s authoritative news source. &lt;/rant&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisdpratt.com/2007/07/09/associated-press-internet-writer-doesnt-know-jack-about-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
