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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Write code top-down

1 点作者 refactorworks将近 2 年前

1 comment

turtleyacht超过 1 年前
You should build up primitives and compose them instead.<p>---<p>In top-down design we say, in effect, &quot;this problem is too complex for me; I shall dissect it into a number of smaller problems, and those into smaller problems still, until I have a set of problems simple enough to solve.&quot;<p>In bottom-up design we say instead &quot;this machine is not well-suited to my problem, because the elementary operations are too elementary; I shall therefore use the elementary operations to create a more powerful machine, and the operations of that machine to create one still more powerful, until I have a machine on which my problem can be easily solved.&quot;<p>-- Jackson, M.A. <i>Principles of Program Design</i> (1975)