Jump to content
Larry Ullman's Book Forums

Oop Php Publication Recommendation


Recommended Posts

Thanks for the nice words. I've read part of this book and can recommend it: http://www.amazon.com/Objects-Patterns-Practice-Experts-Source/dp/143022925X/ref=sr_1_3?s=books&ie=UTF8&qid=1301063737&sr=1-3

 

I don't know this book, but I've heard excellent things about the author, David Powers: http://www.amazon.com/PHP-Object-Oriented-Solutions-David-Powers/dp/1430210117/ref=sr_1_1?s=books&ie=UTF8&qid=1301063737&sr=1-1

 

I'm not familiar with this book or the writer, but the publisher puts out good books and it gets good reviews: http://www.amazon.com/Object-Oriented-PHP-Concepts-Techniques-Code/dp/1593270771/ref=sr_1_6?s=books&ie=UTF8&qid=1301063737&sr=1-6

 

Please let us know if you find a book that you particularly like.

Link to comment
Share on other sites

  • 1 month later...

I totally understand Antonio, I'm the same. That's why I have really taken to Larry's books. From experience the Apress books are brilliant references on topics but they're hard work. I'm looking forward to reading both books and will let you know how I get on :)

Link to comment
Share on other sites

  • 2 months later...

Right, I said I would provide some feedback on a couple of OOP books that Larry recommended to Wasabi (As you can all see). I had already looked at getting PHP Object-Orientated Solutions by David Powers and Matt Zandstra's PHP Objects, Patterns and Practice as they came very well recommended on Amazon.

 

I should mention that I re-read (skim read) PHP5 Advanced. I did this for two reasons, firstly, I wanted to look at how Larry described and talked over the material, so I could go into this book, with a heads up (remember what I already knew and what i'd forgotten). Secondly, everybody learns and interprets differently so I didn't think it would hurt to have two explanations of any one topic.

 

So far I am 50 pages into PHP Object-Orientated Solutions and it's been a good read. I picked up a couple a things, such as how the Zend coding standard looks (which isn't vastly differently to my own or yours I would imagine). A good tip (Tips are things that I'm a sucker for) was to use the underscore when declaring private/protected properties. This helps to remind you that it is protected.

 

protected $_var;

 

On a whole, I would say that it isn't (by a whisker) quite as well explained as PHP5 Advanced, there are occasions when I question if i'd be as understanding about an area if I hadn't read Larry's book.

 

The book goes into the DateTime class, which from memory I think Larry said is going into his new PHP and MYSQL book. Validating users which is based on the Facade pattern, building a versatile remote file connector, simpleXML, Looping with SPL, Generating XML from a DB & creating your own RSS feed.

 

Most of which you'll find are in Larry's advanced book but a procedural approach.

 

I shall report back as I go through it. I'm not sure how regularly Wasabi visits, but at least Antonio and Larry wanted to know.

Link to comment
Share on other sites

  • 5 months later...

Thanks for the nice words. I've read part of this book and can recommend it: http://www.amazon.co...01063737&sr=1-3

 

I don't know this book, but I've heard excellent things about the author, David Powers: http://www.amazon.co...01063737&sr=1-1

 

I'm not familiar with this book or the writer, but the publisher puts out good books and it gets good reviews: http://www.amazon.co...01063737&sr=1-6

 

Please let us know if you find a book that you particularly like.

 

It's time to give some fresh thoughts on this thread. I've learned a lot about object-orientation while writing Java in school. What PHP really lacks, is return type hinting, a solid base object the whole language* is constructed around, and other things like generic types. These things makes it much harder to code applications in object-oriented PHP, but not impossible.

 

Back to the subject. Matt Zandstra's book is just GREAT. Heard of design patterns? This is one of the books that will teach you how, when and if you should use them*. It is most certantly NOT a beginners book. He introduces you to the whole OOP PHP approach, but others might make the switch more easily. When you've played around with objects, understood how they work and should connect your application together, THAT is the time to get this book. If you get this book, and find it hard to understand, leave it, read other books, then come back to it. Just great!

 

For those who would like to learn about object-orientation, or just to learn more about it, David Powers book is a far better pick. He writes in a clean and easy-to-understand fashion, and his examples are good. This will give you an understandment for wordings like inheritance, abstraction, interfaces and how to write clean code. His extension of the DateTime class is great, and I'm using a slightly modified version of this in all new projects.

 

I would recommend both these books warmly. Object-orientation is not something magical, like I think Larry said. Even programmers like Zandstra say procedural code is the right thing to do on occations, especially as PHP is not object-oriented per say. Object-orientation is the art of gathering usefull functions (aka procedural functions) into groups of classes that interacgt with each other. It's not something magical that makes you write 100 times better code.

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...