TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is there life after OOP?

3 点作者 Angelo8000超过 12 年前
Hello! I can't program OOP worth shit. I understand it is a failing of mine, and not OOP.<p>I get procedural, but not OOP.<p>Yes, yes.. I can create a car class and instantiate it, and compose an engine that is part of the car class, as the usual examples of OOP for idiots like me go.<p>But when it comes to real, actual, practical OOP programming, I would rather find myself rolling around in steaming goat feces than figure out what a generic collection is or what a Visitor Pattern is.<p>Is there any hope for me?<p>None, right?<p>I will stick to janitorial work, yes?<p>Thank you kindly, dear sirs and madame.

3 条评论

schoash超过 12 年前
I first learnt OOP together with C++. I didn't understand much. Second attempt was learning JAVA in connection with OOP, it was super easy. So maybe you give the java + oop combo a try.
hasenj超过 12 年前
Try reading the code of an open source project that uses OOP.<p>or, maybe it would help to first learn about functional programming. Then, you will see that polymorphism is just a poor man's closure.<p>Anyway, the most important thing is: don't try to fit your program design into the oop model. Instead, model your program in the way that makes most sense to you. If that's not OOP, then so be it.
MojoJolo超过 12 年前
I think you know the basic of OOP. Try learning an MVC framework. Maybe it's the next thing to do to have a deeper understanding of OOP.