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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Abstraction, Or, the Gift of Our Weak Brains

3 点作者 mossity超过 9 年前

1 comment

greenyoda超过 9 年前
<i>&quot;NASA computer scientists (perhaps some of the smartest, most exacting and meticulous people assembled since the Manhattan Project) write code that is so inscrutable that modern-day maintainers are forced to read the authors’ mail to figure out what the hell the software was intended to do.&quot;</i><p>The structure and quality of that code itself (e.g., its level of abstraction) may not be the main obstacle for a new developer trying to understand it. The real problem is the domain, i.e., the systems of the spacecraft that the code is controlling. Detailed information about the domain is rarely documented in the code itself, and if you haven&#x27;t worked with a Voyager spacecraft before, you&#x27;d need to dig up information about that hardware and its limitations for the code to make any sense to you.<p>As a more mundane example, if you were writing an operating system, you wouldn&#x27;t document the complete specs of the hardware inside the operating system code - you&#x27;d assume the hardware was documented in reference manuals that were available to future operating system developers. But if you didn&#x27;t know anything about computer architecture and tried to understand the code for a Linux device driver, you&#x27;d find the code &quot;inscrutable&quot;, even if it was well-written.