tags:

views:

203

answers:

8

I've been looking to improve my programming habits and I heard that OO is the way to go. Also I'd much prefer online tutorials over books.

A: 

A great place to start is the PHP Classes and Objects manual page.

karim79
A: 

Although the jury is out on certification, you could do far worse than attend a Zend course.

Daz
+4  A: 

Learning how to use classes, methods, and attributes is not sufficient for making you a good object oriented programmer. The other (and usually much more difficult) part is understanding how to solve problems in an object-oriented way.

It's a bit like chess: Even if you have memorized the rules perfectly, it does not mean you automatically are a good chess player. You still need to learn a about strategy and gather a lot of experience.

I haven't found a good web tutorial on how to become a good object-oriented programmer. The topic is too large to be covered within just a few web pages. You are probably better off reading a book on the subject. It doesn't even have to be specific to php, most OO pricinples can be applied to many different OO languages.

Once you have learned the basics of OO programming, I'd also recommend reading a book on design patterns such as the classic Design Patterns by Gamma et al. or the more casual Head-First Design patterns.

Adrian Grigore
I read the whole book 'HF Des.P' and must conclude that although it was a good book, it wasn't an excellent book. I liked the relaxed style and graphics but too much is too much. 3.5stars/5 :) not very essential reading
Peter Perháč
I have not found anything online that really teaches oop paradigm truly. Lots of them focus on the syntax and semantics of classes, but don't dig much deeper.
hasen j
+1  A: 

Here are a few good tutorials from the PHP guys themselves.

Ólafur Waage
A: 

Not to be mean to Php, because it's quite good to get stuff done and fast, but Object Oriented Php is a non feature in my book, it's more productive to use Php as a procedural language, after all that's what it was made for, OOP is quite poor compared to other languages, same way I'd not use OOP with Perl either, if you want to learn OOP, which I totally recommend you use Ruby or Objective-C.

Anyways can't link but try googling for OMG (Object Management Group), they have tutorials and info about OOP on their site

Robert Gould
A: 

Some recommend "PHP in action" by Manning.

Ekkmanz
+1  A: 

Неге is nice book which shows OOP in practice. You can download the sources from website and look what the book is about.

http://objectorientedphp.com/

dig
+4  A: 

Anyway, OO is not a language depended concept, I think.

Sepehr Lajevardi