What a Programmer Does

· 427 words · 1 minute read

电脑里躺着一篇文章What a Programmer Does1。年代已经非常久远:1967 年,距今刚好半个世纪。这篇文章是Charles L. Baker 介绍给 D. E. Knuth 的, 原作者已不可考。一句话概括内容:这简直就是 1967 版的 Clean Code2。文章字数不到一页半,但是字字珠玑。你也会发现,这篇文章是某些警句的出处, 比如:

“No one has seen a program which the machine could not comprehend but which humans did.”

如果把编程看作是建造稳固、有组织的机体,那么 bug 的存在意味着组织的崩塌。如果把 debug 看作是驱魔的仪式,那么非常不幸,程序员本人正是恶魔的使作蛹者。

“A programmer develops his program so that a human can comprehend it.”

50 年过去了,各种编程语言、方法论层出不穷。但这篇文章仍旧毫不过时。


  1. HN 上的评论:https://news.ycombinator.com/item?id=12568863 ↩︎

  2. 别人写的评论:http://alvaro-videla.com/2014/09/a-programmers-role.html ↩︎

comments powered by Disqus