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

时间:2021-08-27 15:09:36

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是要走的路。另外,我更喜欢在线教程而不是书籍。

8 个解决方案

#1


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

以下是PHP人员自己的一些很好的教程。

#2


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.

我还没有找到关于如何成为一名优秀的面向对象程序员的好的网络教程。该主题太大,无法在几个网页中涵盖。你可能最好读一本关于这个主题的书。它甚至不必特定于PHP,大多数OO pricinples可以应用于许多不同的OO语言。

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.

一旦你学会了OO编程的基础知识,我还建议你阅读一本关于设计模式的书,比如Gamma等人的经典设计模式。或者更随意的Head-First Design模式。

#3


OO is not a language-depended concept.

OO不是语言依赖的概念。

#4


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

Неге是一本很好的书,它在实践中展示了OOP。您可以从网站下载资源并查看该书的内容。

http://objectorientedphp.com/

#5


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

一个很好的起点是PHP Classes and Objects手册页。

#6


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

虽然评委会没有获得认证,但你可能会比参加Zend课程更糟糕。

#7


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.

不要吝啬Php,因为完成和快速完成工作非常好,但是面向对象的Php在我的书中是一个非特性,使用Php作为一种过程语言会更有效率,毕竟它是为它做的,与其他语言相比,OOP相当差,如果你想学习OOP,我也不会将OOP与Perl一起使用,我建议你使用Ruby或Objective-C。

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

无论如何不能链接但尝试谷歌搜索OMG(对象管理组),他们在他们的网站上有关于OOP的教程和信息

#8


Some recommend "PHP in action" by Manning.

一些人推荐Manning的“PHP in action”。

#1


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

以下是PHP人员自己的一些很好的教程。

#2


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.

我还没有找到关于如何成为一名优秀的面向对象程序员的好的网络教程。该主题太大,无法在几个网页中涵盖。你可能最好读一本关于这个主题的书。它甚至不必特定于PHP,大多数OO pricinples可以应用于许多不同的OO语言。

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.

一旦你学会了OO编程的基础知识,我还建议你阅读一本关于设计模式的书,比如Gamma等人的经典设计模式。或者更随意的Head-First Design模式。

#3


OO is not a language-depended concept.

OO不是语言依赖的概念。

#4


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

Неге是一本很好的书,它在实践中展示了OOP。您可以从网站下载资源并查看该书的内容。

http://objectorientedphp.com/

#5


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

一个很好的起点是PHP Classes and Objects手册页。

#6


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

虽然评委会没有获得认证,但你可能会比参加Zend课程更糟糕。

#7


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.

不要吝啬Php,因为完成和快速完成工作非常好,但是面向对象的Php在我的书中是一个非特性,使用Php作为一种过程语言会更有效率,毕竟它是为它做的,与其他语言相比,OOP相当差,如果你想学习OOP,我也不会将OOP与Perl一起使用,我建议你使用Ruby或Objective-C。

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

无论如何不能链接但尝试谷歌搜索OMG(对象管理组),他们在他们的网站上有关于OOP的教程和信息

#8


Some recommend "PHP in action" by Manning.

一些人推荐Manning的“PHP in action”。