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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A Slightly Skeptical View on Object-Oriented Programming (2001)

22 点作者 xvirk超过 10 年前

9 条评论

pekk超过 10 年前
There&#x27;s a lot of ranting here and it&#x27;s hard to work through.<p>Since I predict almost everyone is going to come down on the pro-OOP side or change the subject to FP in order to show their professional credentials (and because they don&#x27;t know any better), I&#x27;d like to note that some of this complaint about OOP marketing, though it sounds cranky, is strictly justified by the extreme amount of OOP hype that surrounded Java and before it, Smalltalk. And it is not just cranks who observed this (for example, there is the famous quote by Dijkstra).<p>However awesome Smalltalk was, many of the ideas now identified as &quot;OOP&quot; (like modularity and reusability) preceded Smalltalk by some time, and did not spring fully formed from Alan Kay&#x27;s thigh. But all these individual things had to be presented as one big revolutionary change because it just isn&#x27;t good marketing to talk about lots of incremental evolutions from a baseline set in the 60s.<p>Apart from the merits or demerits of OOP itself there&#x27;s a meta-point here, which is that we can&#x27;t get anywhere discussing sweeping methodological topics like this unless we break down language features or practices and present solid arguments for them individually. Too often discussion gets reduced to a slogan like &quot;OOP allows reuse&quot; or &quot;typesafe programs can&#x27;t go wrong&quot; and then practice is enforced across entire companies without real reasons - just a lot of hand-waving, shaming and appeals to experience and authority which eventually harden into dogma. So in practice, almost nobody understands why we do things the way we do and dissent is dismissed without consideration. This is a terrible way to explore and validate ideas.
jokoon超过 10 年前
I wonder if unix isn&#x27;t already working with some object oriented paradigm. A process is some sort of object if you think about it. It has inputs and outputs. It can be instantiated and stay in memory. It can even send and receive messages, it you care about reading the doc on how to do it.<p>Maybe it&#x27;s more relevant to understand how a system work, instead of trying to organize abstract high level concepts of how the cod should be written.<p>Maybe people have been trying to make UML concepts be understood in code, I&#x27;m sure that&#x27;s the main reason, and OOP seems to be just that, some attept of abstract harmonization between theory (UML) and practice (OOP code).
评论 #8932282 未加载
评论 #8932032 未加载
sebastianconcpt超过 10 年前
That&#x27;s &quot;slightly skeptical&quot;?<p>Sounds more like a case of waterfall of personal opinion.
leovonl超过 10 年前
I generally disconsider OO as a basic programming paradigm, not only because it is mostly badly designed in most programming languages, but mainly because modern languages already provide what OO was there to solve in the first place - in a much better way.<p>However, this article is mostly flawed - it&#x27;s just a lot of ranting entangled with some random facts, curiosities and things that have nothing to do with any valid reasoning.<p>Also, most reasoning behind the article falls into some argumentative fallacy, like ad populum. In summary, it just fails miserably.
mikerichards超过 10 年前
Hah, yeah this is by a guy that goes by the nick Tablizer. He coined a term called table-oriented programming.<p><a href="http://www.reocities.com/tablizer/top.htm" rel="nofollow">http:&#x2F;&#x2F;www.reocities.com&#x2F;tablizer&#x2F;top.htm</a><p>Back when he posted this, it was almost sacrilege to be questioning OO. He used to get beat up a lot on various forums. Now it seems at least the emperor doesn&#x27;t seem to be wearing a jacket when it comes to OO.
gingerlime超过 10 年前
I see some references to years as far as 2014, including a list of books published from 2000 to 2012... so I&#x27;m wondering about the 2001 on the title(?)
评论 #8932107 未加载
serve_yay超过 10 年前
Everything you don&#x27;t like is cargo-cult.
评论 #8932291 未加载
olavk超过 10 年前
I wonder about the purpose and intended audience for a writeup like this. It is probably not intended for OO-practicers, since it starts out by calling them idiots and fanatics before even touching any technical arguments. Oh and calling them corrupt charlatans and religious communists.
putzdown超过 10 年前
Live and let live, people. [Programmers are trees.](<a href="http://www.jeffwofford.com/?p=915" rel="nofollow">http:&#x2F;&#x2F;www.jeffwofford.com&#x2F;?p=915</a>)