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.
views:
203answers:
8Where can I find some good tutorials to learn object orientated programming particularly for php?
Although the jury is out on certification, you could do far worse than attend a Zend course.
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.
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
Неге is nice book which shows OOP in practice. You can download the sources from website and look what the book is about.
- OO Tips
- PHP Classes
- OOP in PHP
- and Google ofcourse!
Anyway, OO is not a language depended concept, I think.