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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to Write Computer Programs (2015) [pdf]

93 点作者 secwang大约 1 年前

3 条评论

Joker_vD大约 1 年前
&gt; When we become proficient in describing the result in terms of the argument, using only the present tense of the verb <i>to be</i>, we could experiment with writing the description in a different language (French, Latin, Esperanto, ...) before transliterating it into code.<p>This is going to be a funny exercise for languages that <i>don&#x27;t</i> have the forms of the verb <i>to be</i> for the present tense.
评论 #40209562 未加载
评论 #40217375 未加载
mehulashah大约 1 年前
Declarative programming is quite elegant, but it is not the same as prompting. I recently had an argument with someone who claimed our declarative code for running analyses over documents was &quot;hard coded&quot;. In our product, our approach is to use a functional language approach for analyzing documents. He was an expert in NLP and said that his users required the ability to instruct the system in natural language - English. It still was weird that someone call our declarative program - &quot;hard coded&quot;. My, how times have changed.
commandlinefan大约 1 年前
&gt; One significant downside of is-y programs is that in general they run slower than corresponding do-y programs.<p>I wonder about this. It seems like the ultimate in declarative programming is prompt engineering: just describe the problem and let the computer decide how to break it down. As of now, humans can still find more efficient ways to break down problems than computers can.
评论 #40213864 未加载