I was asked by Packt Publishing to do another review. After such a positive experience reviewing Blogger: Beyond the Basics I agreed to review Object Oriented Programming with PHP5.
I chose this book because PHP is a very popular language but is easily misused and because I was hoping to find some bits that I didn’t know about OOP PHP.
I found that this book was full of very useful information even as an experienced PHP programmer. I did find some of the wording awkward and there were a few mistakes in the code samples when it came the case of some words but this did not diminish the excellent value this book provides to the reader.
I would say this book is ideal for the beginner to average PHP programmer or someone looking to start or improve their understanding of OOP in PHP.
Book Highlights
I want to take some time and touch on what I consider to be the best parts of the book and give you a small glimpse into what this book has to offer.
Chapter 2 - OOP Overview
Chapter 2 discusses what makes up an object oriented language. Essentially, this is the most important chapter in the book because if it were the only chapter you would walk away with everything you needed to begin using the OOP style of PHP. This was done very well, with lots of code examples to make the concepts easy to understand. Everything beyond this chapter builds on these concepts.
Chapter 4 - Design Patterns
This is another important chapter. Design patterns are problems that regularly present themselves and the recommended solutions for those problems. Design patterns are just guidelines on how to best handle a given situation. I really enjoyed this chapter and it really adds some extra punch to the book.
Chapter 5 - Unit Testing
I was thrilled to see that this was included in the book. Unit testing is very popular and very criticized depending on who you talk to. As the lead developer in my company it is my job to ensure the quality of our software and unit testing is a useful tool for that even when I have to constantly insist that tests get written.
Chapter 7 - MySQLi, OOP Database Access
This was an informative chapter however it is funny to note that while the chapter is supposed to be highlighting the OOP usage of MySQLi the author uses procedural methods several times throughout the chapter. He uses mysqli_connect_errno() and mysqli_connect_error() instead of $mysqli->connect_errno() and $mysqli->connect_error().
Chapter 9 - Building With MVC
MVC is all the rage these days and no book on OOP and Design Patterns would be complete without looking at MVC. MVC is a pattern used in many popular frameworks like Rails, Django, and Symfony. MVC can be done in many different ways ranging from complex to basic implementations. Frameworks like Rails have builtin utilities that generate the repetitive and structured code for you as a base to get you started quickly. I tend to roll my own implementations and keep it simple and fast depending on the scope of the project.
Conclusion
Once again, I was impressed by this book and was glad that I had picked it up. It is great for beginners or those looking to improve with OOP. Give it a read sometime. You’ll be glad you did.
Did you like this post? Be sure to grab my RSS feed so you don't miss out on more great articles.

Recent Comments