Packt.Publishing.CakePHP.Application.Development.Jun.2008

时间:2011-10-30 17:20:46
【文件属性】:

文件名称:Packt.Publishing.CakePHP.Application.Development.Jun.2008

文件大小:8.75MB

文件格式:PDF

更新时间:2011-10-30 17:20:46

cakephp

As the first book to come out on CakePHP, there was a lot of pressure on this title to be really strong. On the whole, it has pretty good coverage of the topic, but the flow of the title is undermined by shoddy editing. = The Good = This title is a pretty decent introduction to CakePHP. Coming from a background in PHP and having worked with Ruby on Rails for a few years as well, I think the authors did a good job covering the basics and putting together some interesting projects for you to work on. = The Bad = As a technical editor for several books myself, I know how difficult it is to catch all of the mistakes (missing semicolons and the like), but the level of technical errors in this book was shocking. One simple example: the minLength validation option was misspelled everywhere (as "minLenght") -- in code examples, in body copy, etc. And that's just one example. It's obvious that the examples in this book were not thoroughly vetted despite having 2 reviewers and 2 technical editors. Sure, maybe I'm nitpicking, but I feel strongly that when a technical book comes out, it needs to be as accurate as possible to reduce the frustration level of people following our examples line-by-line. Another minor gripe I have with the book is the incredibly inconsistent formatting of the code examples. Indents were all over the place, as were line wraps, making it very difficult to follow. I understand that some people don't care about nice-looking code, but when you are supplying that code for an educational purpose, it should be as legible as possible. = The Ugly = For the most part, I enjoyed this book, but the section on JavaScript and Ajax made me wince. Repeatedly. As someone who spends a lot of time teaching people how to write unobtrusive JavaScript, it pains me to see books that continue to promote doing things the wrong way. I'll give the author's props for relegating most of their JavaScript to external files, but their Ajax examples leave no fallback for users with JavaScript turned off (or no JavaScript support). It would have taken just a few more lines to show how it could be done using progressive enhancement techniques like Hijax (discussed in Jeremy Keith's book Bulletproof Ajax). One final gripe I have with this title is that it completely skips over the topic of unit testing. The section on working with the Cake shell briefly mentions it (by simply having you decline the offer to have the shell script generate test cases for you). After seeing that, I was hoping the authors would at least devote a small chapter to provide a cursory overview of building and using unit tests in Cake. Alas, that chapter never materialized. = Final thoughts = In all, the book was decent, but didn't really blow me away. It could have been a lot better.


网友评论