Skip to main content

3 minute read - Book Reviews

Book Review: Pragmatic Ajax - A Web 2.0 Primer by Gehtland, Galbraithand Almaer

Jun 8, 2008

The Ajax world moves really quickly, and has moved on a lot since the publication of this book, so much so that it could really do with a new edition. Fortunately, with the sub title “A Web 2.0 Primer”, we should expect an overview, and in some ways it doesn’t matter that we don’t get the most up to date information.

Book Cover of Pragmatic Ajax

As a novice JavaScript programmer I did learn a lot from this book, but after having read it once, I doubt I’ll really refer to it again.

The authors start by explaining a little about Ajax architecture. And an example of creating a very simplified Google Maps which I think I would have preferred as an appendix as it didn’t really deliver an Ajax app, but I did learn a little about png that I didn’t know.

“Chapter 3 - Ajax in Action” and we really start to learn some Ajax as we get to see the XMLHttpRequest in action. A quick overview of cross-browser compatibility opens our eyes to the fact that we should probably find a decent Ajax library and use that.

Chapter 4 provides an ’essentials’ guide to JavaScript which I thought provided the basics of JavaScript very quickly and concisely. I learned a bit more about HTML events, and Dom manipulation - although I also learned that I really need to find a good library and use that. The book’s age means that it does not cover JQuery.

The next few chapters then cover a few JavaScript frameworks: Dojo Toolkit, JSON-RPC. Then a few client-server type frameworks DWR (Java), SAJAX. Then a few GUI libraries:, Backbase, SmartClient.

Unfortunately for the book, more frameworks exist now, than did at the time of publication, and the ones mentioned have advanced so you can read the coverage in this book as ’libraries do things like this’ and then you have to go hunt the web and consult to find out the new libraries that ’everyone’ uses.

The chapter on Debugging helped but, again, the debuggers mentioned have all advanced and new ones have appeared e.g. GreaseMonkey techniques. I did not know about Venkman or View Source Chart, so I did learn something.

The book has no mention of Test Driven Development techniques or JavaScript unit testing e.g. JSUnit or QUnit.

Degradable Ajax then has a chapter to itself - how to make your apps work with or without JavaScript, and a short discussion of if you should even bother to degrade.

Then an examination of some server-side integration frameworks: JSON-RPC, SAJAX (PHP), Ruby on Rails, DWR (Java), Ajax.Net, and Atlas (.Net).

The book ends with a quick overview of the (then) new Canvas, and SVG.

Just in case the above seems overly negative. At the same time as I read Pragmatic Ajax, I also read “Ajax: Your visual blueprint for creating rich internet applications”, and I much preferred Pragmatic Ajax.

Related links:

Find the book on [] []

You will need a Github account to comment. Or you can contact me with your comment.

I reserve the right to delete spam comments e.g. if your comment adds no value and its purpose is simply to create a backlink to another site offering training, or courses, etc.