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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Functional programming vs. "OO" programming (or, How to entirely miss the point)

9 点作者 jkush大约 17 年前
Summed up:<p>...I can give my impressions of the funtional aspects of what I call free-floating functions.<p>What I mean by a free-floating function is a function that is not tied to a class. For example:<p>doSomething(thingToDo);<p>as opposed to<p>ThingDoer.doSomething(thingToDo);<p>The thing I've never liked about languages that allow free-floating functions is that they lead to sloppiness and confusion. Where does the magic non-name-spaced function exist? How can I access it? What do I need to import/include to get to it? What happens if there are different doSomething() funcions I want to use?

5 条评论

Hexstream大约 17 年前
Hi, I'm looking for the vote-article-down button. Has anyone seen him? I really, REALLY need to talk to him...
评论 #137214 未加载
Xichekolas大约 17 年前
<i>"I can't speak to the affect of one programming language or another on the way people think [...] my language is Java [...]"</i><p>Ahhh, there it is.
henning大约 17 年前
This falls into the category of being "not even wrong".
graywh大约 17 年前
The first several comments to the article are definitely worth reading.
评论 #137207 未加载
tel大约 17 年前
This must be sarcastic, right?