Customer Reviews


9 Reviews
5 star:    (0)
4 star:
 (2)
3 star:
 (1)
2 star:
 (1)
1 star:
 (5)
 
 
 
 
 
Average Customer Review
Share your thoughts with other customers
Create your own review
 
 
Only search this product's reviews

The most helpful favorable review
The most helpful critical review


2 of 3 people found the following review helpful:
4.0 out of 5 stars Great book to catch up on OOP in PHP
So as some of you already know, in my venture to keep up on the development community and trends, I have started to review books for Packt Publishing. They have sent me a few books to read and review, and I will be posting them to my blog for everyone to read. I have picked books from them that I believe are topics worth exploring and actually reading from a book (and not...
Published on August 26, 2008 by Daniel Smith

versus
15 of 15 people found the following review helpful:
1.0 out of 5 stars Unclear, fails to communicate OO principles
With PHP 5.3 looking very close to release, bringing with it significant changes such as namespaces, this is an awkward time to release a PHP book of any generality. Within a few months it will be clearer how well the new features are taking hold and there is almost certainly going to be a clamour for books that show how new features affect development practices and how...
Published on December 22, 2007 by James Stewart


Most Helpful First | Newest First

15 of 15 people found the following review helpful:
1.0 out of 5 stars Unclear, fails to communicate OO principles, December 22, 2007
By 
James Stewart (Grand Rapids, MI, USA) - See all my reviews
(REAL NAME)   
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
With PHP 5.3 looking very close to release, bringing with it significant changes such as namespaces, this is an awkward time to release a PHP book of any generality. Within a few months it will be clearer how well the new features are taking hold and there is almost certainly going to be a clamour for books that show how new features affect development practices and how to make use of them. Even without that, it is hard to recommend this book as it fails to live up to its promise and provides a poor introduction to Object-Oriented programming.

The book's first problem is the poor quality of the English contained. The author does not appear to be a native English speaker and the publisher has apparently done little to clean up the language. For the most part that simply makes for some curious rhythm and phrasing but there are a number of places where it contributes to inaccuracies, such as constant confusion between objects and classes. Finding such inaccuracies alongside mistakes such as confusing polymorphism and inheritance I'm left wondering how well the authors really know their subject. Packt would do well to employ another reviewer to clean up the syntax and definitions before any reprints.

The structure of the book is curious. Rather than approaching topics through the use of an example project or projects, the author gives disconnected samples, often offering little beyond that which can be found in the online PHP documentation and generally failing to explain how techniques would be useful. While he insists that PHP5's Reflection API is an important tool, there is little to back up that assertion. There's a large code sample and a list of the methods and attributes of a reflection object, but no real substance. The database section covers some key examples, such as PDO, ADODB and MDB2, and touches on the ActiveRecord pattern, but uses four pages to list the RDBMSs that ADODB supports and then only spends a page and a half on ActiveRecord, failing to explain either its concepts or advantages in any detail.

The high point of the book is the half chapter on unit testing. A few well chosen examples provide a demonstration of how code can be tested and how that allows for refactoring without fear of regressions. The reasons for unit testing are clear as is basic usage of PHPUnit. I'd have liked to see further examples rather than several pages listing all the default assertions PHPUnit provides, and I disagree with the claim that there should never be more than one assertion per test (individual tests should focus on a single concern, but can use multiple assertions to do so) but by that point in the book it was good just to see a section that made its point clearly.

Fundamentally, I came away from this book feeling it had failed to communicate clearly the core principles or reasons for object oriented programming. By trying to cram in too much reference material, not offering clear contexts for each technique, and not lingering on ideas like encapsulation the book fails to instill OO techniques.

Disclaimer: I was sent a free copy of this book to review
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


3 of 3 people found the following review helpful:
1.0 out of 5 stars Same as the documentation...but as interpreted by a non english speaker and with less examples, April 21, 2008
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
Read the php online docs instead, their examples are much better explained. What do you expect from a book with a clipart flower on the cover? Cheaply produced, outsourced, and spammzor'ed to everyone registered in the stupid php classes website.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
2.0 out of 5 stars Don't Buy, August 3, 2008
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
The author is obviously not comfortable with the English language, and not from a teaching background. The book has frequent errors, is not easy reading and just plain is not a book that is easy to learn from - maybe not even possible to learn from. I've taught myself over a dozen programming languages from books and I am a competent PHP programmer who just wants to add OOP style, yet this book was useless to me.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
1.0 out of 5 stars Sloppy Book, Sloppy Code?, December 21, 2008
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
I set out to write a scathing review of this book after wasting money on it. Instead, I took some time to collect my thoughts before actually committing words to the page. I wish the author of this book had done the same.

The "English" used in this book could only barely be called such. For a native English speaker such as myself, the overly-familiar, almost childlike approach to prose that the author has adopted is very distracting. There are blatant errors in the book, and that's not nit-picking; the book probably averages a glaring error every couple of pages. I don't claim to be the world's most polished author, but I'd want to re-write this book cover-to-cover before I'd ever try reading it again.

The coding "standards" professed in this book are horrible for beginning coders, and make little sense. They don't follow any of the accepted "major" PHP standards, and seem to be an amalgamation of non-PHP languages and basic object-oriented principles.

The book does a terrible job of introducing any level of programmer to object-oriented design ideas. Although OOP is one of the most difficult concepts to teach to another person, this book is NOT the place you want to start if you're just picking it up. I am an experienced OO coder and the book had my head spinning with its contradictions, erroneous information, and terrible analogies. The code examples are poorly written snippets of barely functional code in many cases. I'm not sure where Packt Publishing got the idea that this author was even remotely qualified to write this book, but if their "About the Author" section is any indication, no one at the publishing house writes English very well, either.

I am really trying not to be as harsh as I could be here, but I will say that it's questionable whether this book went through ANY level of editorial review. Sure, the author is from Bangladesh, but if there was a language barrier involved, couldn't someone have translated the book into slightly more passable English? I don't know if Packt Publishing is a "vanity" publishing house that doesn't have editors, but I will definitely stay FAR away from their books in the future. In my opinion, you should do the same with THIS book. There are far better books on the subject, and you'd only be wasting your money on this one.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 3 people found the following review helpful:
4.0 out of 5 stars Great book to catch up on OOP in PHP, August 26, 2008
By 
Daniel Smith (Orlando, FL USA) - See all my reviews
(REAL NAME)   
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
So as some of you already know, in my venture to keep up on the development community and trends, I have started to review books for Packt Publishing. They have sent me a few books to read and review, and I will be posting them to my blog for everyone to read. I have picked books from them that I believe are topics worth exploring and actually reading from a book (and not just finding a resource online).

The first book that was delivered is the one that this post is dedicated to. Object-Oriented Programming with PHP5 by Hasin Hayder was picked to go over what I believe to be the base of successfully programming in PHP. Object oriented programming is not an option anymore when working in this business. So if you have been stuck as a procedural programming in PHP it's time to remedy that and apply some new (well not really new) techniques and master the language.

Hayder begins the book off with exactly that, discussing and demonstrating the differences between Procedural PHP and Object Oriented PHP. I believe this knowledge to be essential to start your OO voyage. Pay attention to examples in this chapter as they give some good feedback on what cases OO is necessary. Hayder also explains the differences between PHP4 and PHP5's OO approach for anyone who has PHP4 systems still in play. After that Chapter 2 goes into the nitty gritty basics of using OOP in PHP, including a sections on using interfaces and abstract classes.

The next chapter that sparked some interest is the chapter on Design Patterns, including some of my favorites: Singleton Pattern, Lazy Loading, and Adaptor Pattern. This is a must read if you will be developing frameworks or working with some of the more modern frameworks like Zend Framework. Here at NFi Studios we do framework development on top of Zend and commonly use some of these patterns.

Another hot topic over at work is Unit Testing, which is covered briefly in Chapter 5, I recommend reading this chapter and checking out the section on TDD (Test Driven Development), and the brief section on PHPUnit. I do however wish this section was a little bigger, but this is a book on OOP and I guess I could get a book on Unit Testing later on.

Other topics covered in this book include PDO (which is a database staple of Zend Framework), XML and MVC (which is the most popular architectural pattern in the PHP web development world). The books strong points are its definitions of OO concepts and examples given about them. So if you have a brief understanding of Object Oriented Programming but don't understand all of the concepts, this book is for you.

For a good yet shorter read on PHP techniques using OOP I recommend this book. It gives you a good synopsis of big topics and gives you the ability to dive into bigger more complex books and some of the web resources and API's out there.

[...]
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1.0 out of 5 stars Writing/editing quality?, August 7, 2011
Amazon Verified Purchase(What's this?)
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
Along with the author, the book's "Credits" page lists; 2 reviewers, 3 different editors, an editorial team leader, and a proof reader. One would have to ask, after reading the first few chapters, what these folks were doing - it's obvious they weren't reviewing, editing, or proof reading. The writing is early grade school level at best, with very many language errors. It's painful to read such poor language constructs and the poor writing just makes it difficult to comprehend the concepts and techniques they are attempting to explain.

I had hoped this book would provide a deeper understanding of using OOP techniques and objects to take web application development with PHP to that next level of reuse, maintainability, and extensibility, but it definitely came up short. Guess I'll have to look for another.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1.0 out of 5 stars This isn't publishing -- it's passing on notes, November 12, 2010
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
As someone with a good understanding of procedural PHP and a developing understanding of OOP concepts, I had high hopes for this book. I lost confidence within the first page of reading it. I then went online and found these poor reviews, and wished I'd read them before buying. I have never read anything so poorly written in anything purporting to have been "published". Maybe if you were secure in your understanding of OOP and just wanted to add in some PHP examples you could get something out of it. But as a newbie trying to grapple with explanations that are so poorly expressed? Why bother?
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


3.0 out of 5 stars Rough around the edges but worth the read, January 27, 2009
By 
Asa Martin (Colorado Springs, CO) - See all my reviews
(REAL NAME)   
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
This book covers an introduction to object-oriented programming, design patterns for php, reflection, unit testing, SPL, databases, XML, and MVC design. It is targeted for beginner to intermediate users. Being new to PHP but not to programming I found the book to be a great introduction to the language. In fact, I learned quite a bit in this read which I am sure will prove valuable in my future development. The author gives many examples and does a decent job explaining things as he moves forward. Another plus is the book is an easy read and not very long.

Unfortunately nothing is perfect and this book has some issues which are difficult to ignore. It is obvious that the author's first language was not English. He is able to convey his thoughts but the poor grammar should have been caught by the editor. I found this very distracting while reading. Another problem is while the author attempts to explain things in simple, plain language; he glosses over important points or is not clear enough in others. I realize this is knit picky but the end of his definition of the word "class" reads, "...sometimes in the book we will name an object as class, as they are both synonymous." Objects and classes are not the same thing and I feel that this distinction while not a major issue for new programmers should not be misrepresented. The last issue I will cover is in the design patterns section. He attempts to recreate the Singleton pattern which is one of the better known in development circles. While his code will work, it is not correct. He maintains a static instance variable properly but fails to protect the constructor by making it private. I am assuming from his example that the developer is supposed to call the constructor to obtain the singleton instance but by not protecting the constructor the php interpreter will create a new instance of the singleton object every time. The static instance variable will remain the same and the example will appear to work but in a real system this could become an issue as there are potentially multiple instance objects floating around on the heap waiting for garbage collection.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 4 people found the following review helpful:
4.0 out of 5 stars Great book for all PHP users!, April 16, 2008
This review is from: Object-Oriented Programming with PHP5: Learn to leverage PHP5's OOP features to write manageable applications with ease (Paperback)
I have looked at a lot of books relating to OOP and PHP, and Object-Oriented Programming with PHP5 is the first to clearly explain PHP and OOP, and how they worked together. This book explains concepts in a way that is easily understood. Hasin Hayder writes the concepts in a very clear to understand method and gives plenty of working examples of each concept.

The book is great for people who are new to the concept of OOP in PHP, or those who know PHP OOP and just need a refresher. The book covers the basics, reminds us of certain practices that are considered best, and those practices that are often forgotten.

Hasin covers the concepts of XML and MySQLi with regard to their use in the OOP world. The XML chapter is amazing! After reading through it I was able to understand and effectively use SimpleXML and the DOMDocument to manipulate XML with ease in PHP5.

Another strong point of the book is it's introduction and explanation of MVC and what it is, how it is used, and some of the more popular MVC frameworks for PHP. This chapter was particularly interesting to me as I am always looking for ways to develop better, faster, stronger applications and this overview of MVC Frameworks made it clear the path to be taken.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Most Helpful First | Newest First

This product