Book Review - Practical Prototype and script.aculo.us
Technical books generally fall into one of two categories: tutorials, which rely on examples; and references, which use a high-level, architecture-centric perspective. If you prefer tutorials loaded with good examples framed in relevant context, then Andrew Dupont's Practical Prototype and script.aculo.us may be worth reading.
The examples I find most useful in a technical book are short snippets of code that do something very specific and which are bracketed by concise discussion. This makes it possible to scan pages looking for the answer to an immediate question. Practical Prototype offers many examples of this style of writing.
I generally find long examples difficult to follow - if I miss one key concept (by scanning ahead over something I'm not interested in, for example), then the rest of the example isn't much use. Fortunately, Practical Prototype only contains two extended examples: a fantasy football league and a blog-like application. And both augment material found elsewhere in the book.
Maintaining the focus to write in this style consistently is not easy, but this is what differentiates an academic, unapproachable book from one that readers at all levels of understanding can learn from. Practical Prototype does a good job of consistently providing the necessary context.
Practical Prototype's reliance on examples does come with a downside: the book doesn't work well as a reference. What are all of the methods added to
Array by Prototype? What's the syntax for creating a class? What are all of the arguments that
morph takes? What are the performance implications of using
getElementById versus $? When shouldn't you use Prototype or script.aculo.us? The answers to these questions may exists, but you'd need to find the right example. Clearly, this was a concious decision by the author and makes sense to the extent that the online API documentation answers these questions. But if you need a reference on Prototype and script.aculo.us, this may not be the book for you.
In summary, if you're looking for a tutorial containing lots of illustrative examples bracketed by concise discussion, Practical Prototype and scrip.aculo.us is a good choice.
Full Disclosure: I wrote this review as part of a program offered by Apress and O'Reilly to members of users groups - in my case the San Diego Java Users Group. In exchange for writing a review - good, bad, or indifferent - I got a free copy of the book. My main interest is in the Prototype framework, which has been discussed previously here and here.