Dojo: The Definitive Guide Reviews



Amazon.com Customer Reviews

Definitely THE definitive guide on Dojo! - Review written on July 31, 2008
* * * * *
Rating: 5 out of 5
3 customers found this review helpful, 2 did not.

Dojo has been a staple in the all-inclusive JavaScript toolkit world for a while now, providing a buffet of useful (and not so useful) features that any web developer should at least consider before tackling a Web 2.0/Ajax-based project. Dojo is actually very easy to use and can dramatically increase developer's productivity - after the steep learning curve that is.

I have been using Dojo (and many other toolkits) for quite some time, however, I fell off the wagon during the Dojo v0.4x days due to a lack of documentation and wandering completely off the path of web development. Recently, I have found the need to venture back into that realm and needed to brush up on my Dojo skills. I immediately went to dojotoolkit.org to read up on any new features and improvements, and found that the documentation was still not quite right -- and with the increased feature set available today I felt like I was back at v0.4x again and the struggle was exponential. Reflecting on how much time I wasted poking around the source only to find that the documentation didn't match the current version's code was a nightmare - *shudders* - I didn't want to do that again.

Lucky for me (and the rest of us) Matthew Russell has done a great deal of the legwork in explaining the ins and outs of Dojo's latest and greatest while dramatically reducing the learning curve. I can't say enough how important the order of learning things is when tackling a new toolkit, API, or language. Start small, learn the building blocks, and eventually you'll have something extremely useful in front of you that makes sense - something the Dojo docs could definitely use (not all of us want to read the API before starting) Russell's book accomplishes this very well by explaining the roots of Dojo upfront so when you reach more complex ground (like creating custom Dijits) you'll be well prepared.

This book points out early that it is not meant to be a primer for web development -- so don't expect any hands-on guides for HTML, CSS, or JavaScript. However, it actually does do a very good job of not overcomplicating such things. If you know what the building blocks of web development are, you're interested in all that is the Dojo goodness, and you're not afraid to get your feet wet then I urge you to take a look at this book. You won't be disappointed.
The Definitive Guide - Review written on July 28, 2008
* * * * *
Rating: 5 out of 5
1 customer found this review helpful, 4 did not.

This book is really the definitive guide when it comes to Dojo. This book comes recommended by Alex Russel who is one of the creators of Dojo. Need i say more?
The Dojo Mojo - Review written on July 01, 2008
* * * * *
Rating: 5 out of 5
6 customers found this review helpful, 2 did not.

Matthew Russell has captured what makes Dojo the "magic sauce" of the Ajax world. As he indicates in the book's dedication, Dojo can be your friend in combating browser idiosyncrasies. Since Russell has been an active participant in the Dojo development community for a long time, he's in an excellent position to write from an expert's viewpoint. Another Amazon reviewer has covered the book's contents thoroughly. "Dojo: The Definitive Guide" is very well-organized and covers lots of ground. I appreciate the fact that the author doesn't simply rehash online documentation; instead he provides real insight and coherent explanations. Like most O'Reilly books, the table of contents and index are invaluable in rapidly honing in on a particular subtopic.

To get the most out of this book, you do need to have some web development background (JavaScript, CSS, HTML), but then who else would be purchasing this book? While the book might have benefited from a discussion of Dojo use with YUI, Google Gear, or other toolkits, the author points out this is out of scope. I imagine this saved more than a few trees. (Check out the ongoing efforts of the OpenAjax Alliance if you need to combine multiple frameworks.) I would have preferred access to the code examples packaged in a convenient zip file; perhaps the author will add that to his O'Reilly catalog page (URL given in the preface or just search for "Dojo" at oreilly.com). However, these points do not detract from the thoroughness in which Russell has covered a difficult and rapidly changing topic.

This book is certainly worthy of the fine O'Reilly imprint. The fact that it is edited by the always discerning Simon St. Laurent is definitely a plus. If you are a web developer who needs cross-browser support, you need this book in your library.
Fills in the necessary blanks on Dojo - Review written on June 22, 2008
* * * * *
Rating: 5 out of 5
6 customers found this review helpful, 2 did not.

Dojo is a comprehensive JavaScript toolkit that provides a layer of insulation between you and browser inconsistencies by leveraging JavaScript and other web technologies. Dojo is very good in situations where YUI is already being used. Dojo has a standard JavaScript library with a collection of drop-in replacements for customized HTML controls and CSS layout hacks, build tools, and unit tests.

Part 1 of this book is a standard library reference that exposes you to the various nooks and crannies of Base and Core, the parts of the toolkit that comprise a JavaScript standard library. Base contains rich functionality as diverse as AJAX calls, DOM querying based on CSS selector syntax, standardized event propagation, and functional programming utilities like map and filter. Core includes lots of additional features for operations like animations and drag-and-drop. While this can be incredibly useful, these features just aren't as common to all use cases as the features in Base.

Part 2 explores the rest of the toolkit, including complete coverage of Dijit, the rich layer of drop-in replacements for customized HTML controls. Dijit is designed so that it can be used in the markup with little to no programming required, and makes it possible to build attractive web pages that already look and behave much like user interface controls from desktop applications.

Part 2 concludes with a discussion of the build system and unit testing framework provided by Util. The build system includes a highly configurable entry point to ShrinkSafe, a tool that leverages the Rhino JavaScript engine to compress code by as a third or more. DOH stands for the Dojo Objective Harness, and provides a standalone system for unit testing your JavaScript code. This is also discussed here.

This book assumes that you've done some web development with client-side technologies such as HTML, JavaScript, and CSS. You by no means, however, need to be an expert in any of these skills and you really don't need to know anything at all about what happens on a web server because Dojo is a client-side technology. Just knowing what they are and how they are used is more than enough. As in most O'Reilly applied programming technology books, there are plenty of code examples. The book just doesn't talk about all of this stuff, it actually shows you the technology in action.

If you are an existing web developer or even a hobbyist who is able to construct a very simple web page and apply a little JavaScript and CSS to brighten things up a bit, then you are qualiified to read this book. If you haven't even heard of HTML, JavaScript, or CSS, and have never written any code that works with any of these languages and technologies, then you might want to consider picking up a good introduction on web development before tackling this book.

The following is a detailed table of contents:

Part 1: Base and Core
Chapter 1. Toolkit Overview
Chapter 2. Language and Browser Utilities
Chapter 3. Event Listeners and Pub/Sub Communication
Chapter 4. AJAX and Server Communication
Chapter 5. Node Manipulation
Chapter 6. Internationalization
Chapter 7. Drag-and-Drop
Chapter 8. Animation and Special Effects
Chapter 9. Data Abstraction
Chapter 10. Simulated Classes and Inheritance
Chapter 11. Dijit Overview
Chapter 12. Dijit Anatomy and Lifecycle
Chapter 13. Form Widgets
Chapter 14. Layout Widgets
Chapter 15. Application Widgets
Chapter 16. Build Tools, Testing, and Production Considerations
Appendix A. A Firebug Primer
Appendix B. A Brief Survey of DojoX
The First Book of Its Kind - Review written on June 21, 2008
* * * * *
Rating: 5 out of 5
8 customers found this review helpful, 3 did not.

I'm up against a deadline for a web application. The going is slow when you
have to hand-carve the HTML, JavaScript, CSS and PHP. Dojo saves you at least
two-thirds of the work, so I'm very grateful for it. But it takes some getting
used to, and the on-line documentation is, well, succinct.

Russell's book came along just in time. It's a lifesaver.

The Introduction alone is worth the price. I found out about
some invaluable Web development debugging tools that I'd never seen before.
Russell provides a clear, concise explanation of some very important JavaScript
notions: Closures, Context, and Anonymous Functions. And all of this before
we even get to the toolkit!

The book makes the Dojo easy to use and easy to understand. There's a wealth
of coding examples, as well as complete lists of objects, methods, and so forth.