Sams Publishing: The Phrasebook Collection
I get a lot of books to review. Currently the stack is about waist high and UPS hasn’t been here this morning. So in an effort to trim down that stack of books, I’m going to talk about books 4 in one review.
Sams publishing has release four “Phrasebooks” for developers:
- PHP Phrasebook – Christian Wenz
- MySQL Phrasebook – Zak Greant & Chris Newman
- JavaScript Phrasebook – Christian Wenz
- Apache Phrasebook – Daniel Lopez
The concept is simple. There are times when you just need a simple fix, not a complete chapter on the theory behind the fix. This book series looks to fill that niche. From the looks of these four books, they do succeed.
JavaScript Phrasebook
Let’s start with the last one I received, JavaScript Phrasebook. Christian Wenz does a great job with this one, even if he does include the “Brief History” chapter. (Actually, it’s only part of a chapter.) He sets the tone of the book well in the introduction.
This book is no cookbook with long and inflexible solutions to short problems.
While I’m not down on cookbooks, I’ve got a brand new on in the pile to review. Sometimes you just need a quick answer to what seems like a difficult problem.
Christian does a great job of presenting solutions to problems like:
- Reading and writing cookies
- Validating Forms
- Sending and receiving data via XMLHttpRequest (AJAX)
- Centering a pop-up on the screen
and other topics. You can see from the sampling I’ve taken here that the topics covered in the book are useful. I would recommend this book highly to two groups of developers. Middle-tier/backend developers who have to occasionally work with JavaScript. Web designers who want to be able to solve problems in JavaScript without having to get a developer involved. (My wife, the lovely and talented Kathy, is a web designer and she tells me that the worst part of her job is having to get a developer involved in a project for a simple piece of JavaScript code)
MySQL Phrasebook
The thinnest of the 4 books, weighing in at only 181 page, the MySQL Phrasebook is none-the-less a good reference if you don’t do MySQL every day. Zak and Chris do a good job pf presenting the concepts clearly and concisely. They are very clear in the Introduction about the goals of the book and specifically list the things the book does not cover:
- Installation and Configuration
- MaxDB or MySQL Cluster
- Detailed coverage of MySQL’s features
- Advanced Topics
They do however, dedicate chapters to:
- Creating Databases, Tables and Indexes
- Storing Data
- Simple Queries
- The MySQL command line client
There is also a chapter dedicated to the various APIs. We here at DevZone are mainly concerned with the PHP API. If you, like many developers, work in multiple languages, you’ll be glad to know that they cover the APIs for C and Perl as well.
Apache Phrasebook
The cover of the Apache Phrasebook lists Daniel Lopez as the author, however on the inside cover, Jesus Blanco is also listed. Just to be safe, we’ll mention both of them.
Unlike it’s MySQL sibling, the Apache Phrasebook does cover installing and configuring. Well, covering is a bit strong, it mentions it. Like the other topics in the series, it gives you the minimum you need to get started. If you’ve never installed Apache before, this isn’t the guide you want. (I’m doing the Jedi mind trick here…) However, if you’ve done it before, understand everything and just need a quick refresher, this will do the trick. Out of all the Phrasebooks in the series,
Maybe it’s just because I find the configuring Apache more daunting than crafting a SQL Select statement but it seems to me that the Apache Phrasebook covers more advanced topics. They talking about things like
- SSL/TLS
- Virtual Hosting
- Security
These all seem to be more on the advanced side to me. I’m sure those of you who do Apache day in and day out will disagree with me but that’s the beauty of the Phrasebook series. It helps you fill in the gaps of your knowledge.
PHP Phrasebook
Finally, we will look at the Phrasebook that most of us are interested in, the PHP Phrasebook. This is the thickest of the four and again is written by Christian Wenz. Sometimes a phrase (solution) can’t be a simple page. This is especially true in the PHP Phrasebook. Some of the solutions that Christian presents, like the “Checking Selection Lists”. This solution covers 3 pages and one of those is sample code. Most however, are like in the other books and limited to a page to a page and a half.
Chapter 8 in the PHP Phrasebook, “Using XML” is worth the price of the book. Whether you use PHP 4 or PHP 5, this chapter covers all the basics. There’s even a section on SimpleXML in PHP 5. (My personal favorite) Christian does not, however, stop there. There’s a chapter on accessing databases that covers most of the common APIs, Strings, Dates and Arrays as well. I’d say this would be a great one to keep in your back pocket but at 309 pages, it’s a bit to hefty.
Conclusion
For what they are designed to be, a quick, handy reference guide, these books are right on the mark. I would have preferred that each “Phrase” start on a separate page just to make it a bit easier to find but that’s really a minor criticism.
Don’t look for answers to difficult problems in this series of books. These books have simple and short answers to a lot of problems that plague developers constantly. They present the answers in such a manner that no matter how hard you thought the problem was, once you see their answer, you realize it wasn’t that hard at all.
=C=

Comments
Thanks for the review!
It is somewhat amusing that MySQL Phrasebook is the thinnest book in the lot, as the first chapter that I worked up for it was about 120 pages. We had to do some serious editing to pare the book down to size.
Cheers!
--zak
I love these concise books where you can read just a few pages at a time and get relevant, practical knowledge. 'PHP Phrasebook' has plenty of that regarding the best ways to do some of the more fundamental but critical tasks using PHP. It is an ideal resource for anyone who has a fair amount of development experience looking to make a 'transition' from one or more other languages to PHP.
I carry it around in my coat pocket and read a few pages whenever I have a few minutes with nothing to do.
While generally this is a great resource, there are a few aspects I find frustrating.
Sometimes the code examples show the actual screen output, sometimes it doesn't. I would prefer to see the output of the code and not have to imagine it- especially since I read this book a good bit while not at my computer anxious to play with the code to see the results for myself. The author seems to arbitrarily show output for some examples and not for others.
In some cases, the author explains how to do something very nicely then tags some reference to an alternative or caveat or proviso but then fails to provide basic meaningful elaboration. It's sort of like someone at a party telling you they heard a rumor about your wife, then they suddenly change the topic and act like they never said anything.
For example, when he shows us how to check for whether or not a form has been submitted he provides the example and rational very nicely. But then he adds that if you are using multiple forms on one page, you can check for the name of the submit button but he doesn't bother to show us how to do that.
He also goes on to comment on how you can do some things but they 'are not recommended' but then he fails to explain why they are not recommended.
While much of the functionality is basic and would seem targeted to novices of PHP, he also assumes the reader has extensive knowledge in all other things related to web-development- which seems contradictory.
I suspect some of these shortcomings were because the concept for a small book necessitated the omission of lots of elaboration. But he brings up these things because he would feel irresponsible if he didn't at least mention them.
It would seem the book is most appropriate for those with extensive experience in other languages and who are looking to see how to do something in PHP that they already know how to do in one or more other languages. For those people, I would highly recommend this book.
4 out of 5 stars
Firstly i think that this book for Dummies because very small, but when i buy his ....... o! yes it's great!!!