面向过程程序员的 OOP

发布于 2024-11-17 12:21:17 字数 1536 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦里的微风 2024-11-24 12:21:17

我也遇到了同样的情况,我开始使用 CodeIgniter。它自然地引导我进入 oop(我喜欢它)。

...所以通过使用 CI 教程,我个人认为您可以实现您的目标。

I was in the same situation and I started to use a CodeIgniter. It naturally guided me into oop (and I LOVE it).

...so by using the CI tutorials I personnaly think you can reach your goals.

hth

高冷爸爸 2024-11-24 12:21:17

也许您应该看看 Matt Zandstra 所著的《PHP 对象、模式和实践》,第三版。我其实不喜欢这本书的写作风格;它以难以理解的方式介绍了困难的概念,然后希望你在讨论本书的后续材料时能够永远轻松地理解它们。尽管如此,通过一些工作,它肯定会帮助您远远超出由“三角形”和“方形”子级(等)扩展的 Shape 基类的普遍示例。它针对的是过程型 PHP 程序员,因此它可能对您非常有用。

Martin Fowler 的《企业应用程序架构模式》也受到高度评价,尽管它用 Java 演示了其代码示例,而我自己从未读过它。

Perhaps you should look at 'PHP Objects, Patterns and Practise' by Matt Zandstra, 3rd Edition. I actually dislike the writing style of the book; it introduces difficult concepts in a hard-to-digest manner and then expects you to be forever comfortable with them when discussing the books' later material. Nonetheless, with some work, it will certainly help take you far beyond the ubiquitous example of a Shape base class being extended by 'Triangle' and 'Square' children (etc). It is aimed at procedural PHP programmers, so it may be very useful for you.

Martin Fowler's 'Patterns of Enterprise Application Architecture' is also given high esteem although it demonstrates its code examples in Java and I have never read it myself.

水溶 2024-11-24 12:21:17

我自己从未读过,但我听说 Head First Java 是一本学习 OOP 原理的好书,可能对你有帮助
http://www.amazon.com/Head-First-Java-Kathy-Sierra/ dp/0596009208

I've never read it myself but I've heard that Head First Java is a good book to learn OOP principles and might be helpful to you
http://www.amazon.com/Head-First-Java-Kathy-Sierra/dp/0596009208

昨迟人 2024-11-24 12:21:17

这本书应该对您有好处 http://www.amazon.com/Object-Oriented -Analysis-Design-Applications-2nd/dp/0805353402(我只读过第一版)。

我建议您远离特定于 php 的书籍和在线教程,因为它们中的大多数都是纯粹的垃圾。

This book should be good for you http://www.amazon.com/Object-Oriented-Analysis-Design-Applications-2nd/dp/0805353402 (I've read only the first edition).

I'd advise you to keep away from php-specific books and online tutorials, because most of them are sheer rubbish.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文