……大多数时候我写程序只是为了让计算机执行,而不是供人阅读。文学编程(Literate Programming)的终极范例就是为你的程序写一本书。我以前有一本名叫《How Tomcat Works》的书,讲的是名为“Tomcat”的 Web 服务器。那是一本非常棒的书,详尽解释了 Tomcat 到底是如何(或者说曾经是如何?)工作的。但我们当中谁有闲工夫去写书啊?我的优先级是:1. 编写出优秀的、能跑的……
…mostly I just write programs for the computer to execute, not for people to read about it. The ultimate example of Literate Programming is writing a book about your program. I had a book once called "How Tomcat Works", about the web-server called "Tomcat". A great book explaining in detail how Tomcat does (did? )work. But who of us have the time to write a book? My priorities are: 1. Write great code that does…
……变得更强。其次,开始去读一些大型代码库(code bases)。这些往往很难读懂,但它们能教给你一些技巧和方法论。今年夏天,我借助《How Tomcat Works: A Guide to Developing Your Own Java Servlet Container》[1] 读了 Tomcat 的源码。虽然读起来并不享受(毕竟是为了工作),但这番经历还是挺值得的。说到底,所有程序员都在为打造可扩展的(scalable)……而苦苦挣扎……
…getting better. Second, start reading some large code bases. These are often difficult to read, but they can teach some tricks and some methodology. This summer I read Tomcats source code with the aid of "How Tomcat Works: A Guide to Developing Your Own Java Servlet Container."[1] While not enjoyable (it was for my job), the experience was worth doing. In the end, all programmers constantly struggle to make scalable,…
……大多数时候我写程序只是为了让计算机执行,而不是供人阅读。文学编程(Literate Programming)的终极范例就是为你的程序写一本书。我以前有一本名叫《How Tomcat Works》的书,讲的是名为“Tomcat”的 Web 服务器。那是一本非常棒的书,详尽解释了 Tomcat 到底是如何(或者说曾经是如何?)工作的。但我们当中谁有闲工夫去写书啊?我的优先级是:1. 编写出优秀的、能跑的……
…mostly I just write programs for the computer to execute, not for people to read about it. The ultimate example of Literate Programming is writing a book about your program. I had a book once called "How Tomcat Works", about the web-server called "Tomcat". A great book explaining in detail how Tomcat does (did? )work. But who of us have the time to write a book? My priorities are: 1. Write great code that does…
……变得更强。其次,开始去读一些大型代码库(code bases)。这些往往很难读懂,但它们能教给你一些技巧和方法论。今年夏天,我借助《How Tomcat Works: A Guide to Developing Your Own Java Servlet Container》[1] 读了 Tomcat 的源码。虽然读起来并不享受(毕竟是为了工作),但这番经历还是挺值得的。说到底,所有程序员都在为打造可扩展的(scalable)……而苦苦挣扎……
…getting better. Second, start reading some large code bases. These are often difficult to read, but they can teach some tricks and some methodology. This summer I read Tomcats source code with the aid of "How Tomcat Works: A Guide to Developing Your Own Java Servlet Container."[1] While not enjoyable (it was for my job), the experience was worth doing. In the end, all programmers constantly struggle to make scalable,…