Code to learn by example from - objects and PHP5

Associate
Joined
27 Apr 2004
Posts
2,377
Hi,

I'm a bit of a noob programmer, done a bit of PHP and I'm currently trying to get my head around objects. I've read what the PHP manual has to say about it and am pretty happy with the technical side of manipulating them etc. What I'm stuck on is seeing where I would use them, what for, and the best practices.

I think I learn best by example so want to find a project that uses PHP5 objects well so I can read the code and try and learn something. And I need suggestions. So I ask OcUK, what is the best example software I can learn from?

Thanks, null :)
 
Hi,

Have you tried looking at the O'Reilly PHP Cookbook? I've got their cookbook for Java which was pretty good, gave ideas on how to do lots of things. So I'd expect the PHP one is along the same lines.

If you want a general book on Objects then Booch's Object Oriented Analysis and Design is good, if rather hard going. But it explains the theory of OO design well although some of the examples are a little off-the-wall.

Half the battle with OO is knowing where to use it..... and knowing where you don't need to use it.

Hope that's of some use.

Jim
 
Back
Top Bottom