How many introductions to Ajax do we need?
Really, how many introductions to Ajax do we really need?
I’ve been a long time subscriber to Linux Journal but have been disappointed by the content in the past year or so. After Nicholas Petreley signed on as editor, I was encouraged to see their visual changes to the magazine (finally making it look like a magazine that could be understood by someone that doesn’t know how to write a kernel module), and I was delighted when they finally discovered Ruby this past summer. When the latest issue arrived in my mailbox, I was excited to see Tim Bray on the cover.
That excitement quickly turned into the fuel for this rant when I started paging through the issue and I came across the first article, “Beginning Ajax”. Not only do we not need another introduction to Ajax, why are we still writing introductions that use the low level XmlHttpRequest object and explaining to our readers how you have to use ActiveX on IE?
That’s a heck of a lot cleaner than the 25 line example in the Linux Journal article. xhr.readyState == 4, who cares?
What’s even more interesting, using Rails, I rarely even write code using Prototype. More commonly, I write: