我在哪里可以找到一些很好的教程来学习面向对象的编程,特别是对于php? [关闭]

我在哪里可以找到一些很好的教程来学习面向对象的编程,特别是对于php?  [关闭]

问题描述:

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.

我一直在寻求改善我的编程习惯,我听说OO是要走的路。 另外,我更喜欢书上的在线教程。 p> div>

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

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

Some recommend "PHP in action" by Manning.

Неге 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/

OO is not a language-depended concept.