Friday, May 9th, 2008

Exclusive Mastering Dojo Chapters

Category: Books, Dojo

<p>

Craig Riecke, Rawld Gill, and Alex Russell, along with the Pragmatic Programmers themselves have been kind enough to give the Ajaxian community some exclusive extracts from the Mastering Dojo beta book.

What do we have on the docket?

First, we have details on the Dojo DOM Apis. Specifically, the author takes us through a challenge involving interview questions and manipulating the DOM for them. We end up seeing code that uses dojo.query, and class addition such as:

javascript
< view plain text >
  1. function layout1(){
  2.   dojo.addClass(dojo.query("form > p")[0], "formTitle");
  3.   dojo.query("div.questions p").forEach(function(node, i) {
  4.     dojo.addClass(node, (i % 2) ? "lightBand" : "darkBand");
  5.   });
  6. }

It then delves into the intricacies of dojo.query and beyond.

Secondly, we have Ajax the Dojo way which takes us on a trip down dojo.data and dojox.Grid lane… two differentiating features that Dojo comes with. The chapter builds a wishlist system using these features.

There is a lot lot more in the book, which the table of contents covers for you. There are 400 pages of material here that cover the huge variety that exists within the Dojo community.

Thanks to the authors and the editor for sharing this with us.

Related Content:

Posted by Dion Almaer at 7:10 pm
3 Comments

+++--
3.9 rating from 43 votes

3 Comments »

Comments feed TrackBack URI

Who think that Dojo is the fastest javascript framework?

Comment by Snowcoredotnet — May 12, 2008

Snowcoredotnet: I’m not sure what metrics you’re asking for exactly, but Dojo holds its own when compared with other popular toolkits. For example, take a look at the results of http://mootools.net/slickspeed/ . If you have a specific point with regards to performance that you are curious about, please let me know.

Comment by Dylan Schiemann — May 12, 2008

This review is an extract from a complete article posted here:

http://otaqui.com/wp/2008/06/dojo-toolkit-book-reviews-dojo-the-definitive-guide-mastering-dojo/

I would recommend this book without hesitation. I found it informative, helpful and really on-point while trying to create a fairly heavy application on top of Dojo. Written in the usual Pragmatic Programmer style, it is as easy to read through a chapter as it is to dig into for a specific answer.

Perhaps one omission is the DOH (which the book incorrectly refers to as the Dojo Object Handler) – perhaps correctly citing the fact that it is out of it’s own scope. Given that DOH is dojo agnostic (your project does need to use Dojo to be tested with DOH) I suppose that is fair enough, but I would love to have seen even an introductory chapter on it.

Mastering Dojo is structured in a slightly confusing way – confusing at least if you are used to The Book Of Dojo and it’s well worth searching for terms in the index (unless you’re reading a PDF!) when the chapter titles don’t look as though they contain what you need.

Comment by peteotaqui — June 24, 2008

Leave a comment

You must be logged in to post a comment.