Review of Learning Dojo

by jon on April 23, 2009

Recently, Packt contacted me about doing a review of Learning Dojo.

Learning Dojo by Peter SvennsonThe author, Peter Svennson, is probably one of the most qualified people in the world to be writing a book about Dojo, considering he's a contributor. The book takes plenty of time covering some of the more common Dijits and how best to apply them in an application. Like any framework, knowledge of certain core components helps when extending that knowledge across the rest of the library.

As someone who's worked extensively with JQuery and Prototype, I appreciated the authors recognition of other frameworks, while being able to diplomatically keep the discussion focused on Dojo without diminishing the work done on the other site of the Javascript framework fence.

Before being totally entrenched in the various Dojo libraries, Svennson takes a couple pages to explain closures and Javascript's prototype based object model. I found his explanation enlightening and a good starting point for a conversation on Dojo. Svennson also sold me on Dojo's class building framework.

What kept me flipping through the pages was Svennson's passion for the technology. The writing style is informal and conveys his personal interest in Dojo's architecture. However sometimes I felt this same passionate writing starts to read more like a sales pitch and less like a serious technical reference.

If you're the type of person that likes to work through a practical application of the technology, Learning Dojo is probably not the best book for the job. Instead of figuring out how to build a form with client-side validation that showcases all the Dojo bells and whistles (which I don't think one app could truly do), you're invited to create custom events, learn how to build class structures with pseudo-inheritance, look at localization and ways of theming your application. Since a lot of these features are design-releated, they tend to feel disjoint.

Only in the last chapter are we introduced to "real-world Dojo". While the examples are great, they feel almost tacked on. Regardless, the multi-charting project and the CRUD application cover a lot of components that were already discussed previously. It's also nice to see that Svennson mentions how to unit test using DOH. Learning Dojo is by no means a book for beginners: as the book progresses, there are large chunks of markup that are loosely explained in passing.

If you're already married to Dojo, planning a site in Dojo or inheriting something written in Dojo, this book could be a great reference for getting familiar with the technology quickly. If this sounds like you, grab a copy from Amazon.

UPDATE: enjoy reading Chapter 6 for free online!

{ 0 comments }

Visualize Design Patterns

I've always been interested in the idea that abstractions can help us discover new relationships that weren't

inherently visible in the implementation that we're trying to tackle. With that thinking in mind, I put together a little engine to help me visualize design patterns that I've drawn. You can navigate the interface with your arrow keys or the "ASDQWE" keys. Unfortunately, fullscreen flash doesn't support keyboard interactions. Without further blabbering, the project is called DPIcon and it's available to play with at dpicon.com.




{ 0 comments }

Progressive Rhythms: Music and Religion in Montreal

April 10, 2009

My friend Vaimoana approached me a couple months ago about helping her produce a mini documentary for her studies in anthropology. I was really honoured to be able to coach her, but the shooting, interviews and editing are all hers. She takes the time to interview people from Christian, Budhhist, Bahá’í, Muslim and Jewish background. [...]

Read the full article →

Why is Zend_Db taking so damn long?

April 6, 2009

As my latest foray into video tutorials, Zendcasts reaches past the 400 subscriber mark on Feedburner, I’ve been getting more and more requests to tackle Zend_Db. I’ve been holding back for a lot of the design reasons that I recently read on Angry Objects. The author identified a lot of the problems I have with [...]

Read the full article →

Greensweepr: Greenwash like a marketing pro

March 13, 2009

While I like to poopoo flash sites for their lack of SEO, difficulty of updating and breaking typical UI conventions, I decided to take a crack at a game with AS3. I’ll be posting an update with scores and a couple of levels in a month or so.
Enjoy Greensweepr!

Read the full article →

NYC

March 11, 2009
Read the full article →