Ryan Partington ryanpartington. For those not familiar with OOP here is a general overview. OOP is a way of structuring your code. It differs from procedural programming as every function and variable is grouped in classes of objects. Object classes perform specific tasks within a module. This allows modifications to be made much easier without disrupting the flow of existing code.
|Published (Last):||9 February 2019|
|PDF File Size:||17.67 Mb|
|ePub File Size:||3.31 Mb|
|Price:||Free* [*Free Regsitration Required]|
Shelves: techbooks With PHP 5. 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 With PHP 5. 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 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. 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.
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. 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 But the explanation of the book is a little bit difficult for beginners.
Object-Oriented Programming with PHP5
Title: Object-Oriented Programming with PHP5