Quotes from work
Literate Programming


Donald Ervin Knuth photo

“The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.”

Donald Ervin Knuth Literate Programming

Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%. <br class="br">Variant in Knuth, &quot;Structured Programming with Goto Statements&quot; http://pplab.snu.ac.kr/courses/adv_pl05/papers/p261-knuth.pdf. Computing Surveys 6:4 (December 1974), pp. 261–301, §1. <br class="br">Knuth refers to this as &quot;Hoare&#x27;s Dictum&quot; 15 years later in &quot;The Errors of Tex&quot;, Software—Practice &amp; Experience 19:7 (July 1989), pp. 607–685. However, the attribution to C. A. R. Hoare is doubtful. http://shreevatsa.wordpress.com/2008/05/16/premature-optimization-is-the-root-of-all-evil/ <br class="br">All three of these papers are reprinted in Knuth, Literate Programming, 1992, Center for the Study of Language and Information ISBN 0937073806 <br class="br">Source: Computer Programming as an Art (1974), p. 671

Donald Ervin Knuth photo

Similar authors

Donald Ervin Knuth photo
Donald Ervin Knuth32
American computer scientist 1938
Herbert A. Simon photo
Herbert A. Simon58
American political scientist, economist, sociologist, and p… None
Martin Lewis Perl photo
Martin Lewis Perl9
American scientist None
Steve Jobs photo
Steve Jobs150
American entrepreneur and co-founder of Apple Inc. None
Jerome Isaac Friedman photo
Jerome Isaac Friedman6
American physicist None
Richard Feynman photo
Richard Feynman181
American theoretical physicist None
Hans Bethe photo
Hans Bethe2
German-American nuclear physicist None
Bill Gates photo
Bill Gates92
American business magnate and philanthropist None
Robert A. Heinlein photo
Robert A. Heinlein557
American science fiction author None
Reinhold Niebuhr photo
Reinhold Niebuhr65
American protestant theologian None