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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Programming Aphorisms of Strunk and White

24 点作者 rgp超过 15 年前
Suggestion of Davin Stanek:<p>http://www.traceback.org/2008/12/17/coding-lessons-can-be-learned-from-writing/

3 条评论

aharrison超过 15 年前
I actually read Strunk and White as part of a computer science course this quarter, and I made many of the same connections the OP makes. Truly, a masterpiece.<p>I did notice, however, that most of the recommendations are extremely time-sensitive. It can be difficult in programming just as in writing to make trade-offs between time invested and benefits. In the OP's example about the Window's API, the offending code might be unimportant enough that the developer overhead of figuring out all the parameters would have been wasted effort. Maintainability has to be taken in context of importance and cost: sometimes code just doesn't need to be that clean.<p>Doing proper cost-benefit analysis (and getting it even remotely right) is still one of my weakest attributes, and it applies particularly heavily when utilising the advice of Strunk and White.<p>Also, one of my favorite quotes (paraphrasing):<p>"I apologize for the length of this letter, I did not have the time to make it shorter." -Blaise Pascal
andreyf超过 15 年前
I don't know about this. The point of writing something like it out, that is. Either people want to "get it", or they don't. Either they're curious about computers, or they're trying to get a job done (for whatever reason). Articles like this are preaching flying to birds and fish - the people who understand you are already there, the people who don't, aren't going to care.
elbenshira超过 15 年前
"Vigorous writing is concise." - Strunk<p>This quote is a favorite of mine. Yearn for this, and your writing/coding will improve.