July 27, 2007 at 2:14 PM by Dr. Drang
The CD includes a PDF with the entire book and the bonus chapters. Because my screen is whiter than the book’s pages, and because I could increase the magnification, this is the first book I’ve found to be easier to read on a computer than on paper.
Content? It starts off pretty poorly. This is the first script:
The heading and horizontal rule are doubled on lines 19-22, the repetition probably coming as the book’s listings were changed from HTML to XHTML. It’s the kind of mistake that’s easy to make, but it’s rough on your readers when the very first bit of code has an error. The PDF has the same mistake, but a separate folder of scripts on the CD has a copy of the script without the repeated elements.
Worse than the editing error is the complexity of the script. There’s a function, some DOM access and setting, and an
document.write("Hello, world!") in the body of the page. It doesn’t keep the code, the static content, and the presentation style in separate files, as is preferred by most web developers today. It’s just a mess. And it’s followed by three pages of explanation. It’s the first script for first-time programmers and it takes three pages to explain.
After reading this script, I decided, unfairly, that this was not the book for me. I skimmed the other chapters but never came across anything that made me regret that decision.