Donald Knuth

Computer Science American 1938 346 quotes

Author of The Art of Computer Programming

Quotes by Donald Knuth

Beware of bugs in the above code; I have only proved it correct, not tried it.

The Art of Computer Programming, Vol. 2: Seminumerical Algorithms 1977

Premature optimization is the root of all evil (or at least most of it) in programming.

Structured Programming with go to Statements 1974

Let us change our traditional attitude by learning to love the machine and to respect its power.

Computer Programming and the Art of Computer Science 1962

The most important thing in a programming language is that it be useful to the programmer.

Structured Programming with go to Statements 1974

A computer scientist is an organism that transforms coffee into theorems.

Attributed

I find that the best way to prepare for a new book is to write a new book.

Attributed

An algorithm must be seen to be believed.

The Art of Computer Programming, Vol. 1: Fundamental Algorithms 1968

The best way to get a project done faster is to start sooner.

Attributed

Science is what we understand well enough to explain to a computer. Art is everything else.

Things a Computer Scientist Rarely Talks About 1999

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.

Structured Programming with go to Statements 1974

The process of preparing programs for a digital computer is especially attractive, not only because it can be an aesthetic experience much like composing poetry or music, but also because it can be an intellectual challenge comparable to solving a difficult chess problem.

Computer Programming and the Art of Computer Science 1962

If you want to be a good programmer, you must be a good debugger.

Attributed

I believe that the best way to prepare for a new book is to write a new book.

Attributed

The computer programmer is a creator of universes for which he alone is the lawgiver. No playwright, no composer, no architect, has ever had such absolute control over his creations.

The Art of Computer Programming, Vol. 3: Sorting and Searching 1971

My aim is to provide a firm foundation for the future development of computer science.

The Art of Computer Programming, Vol. 1: Fundamental Algorithms 1968

The best way to learn to program is to write programs.

Attributed

I have often found that the best way to understand something is to try to explain it to someone else.

Attributed

The only way to learn a new programming language is by writing programs in it.

Attributed

A good algorithm is like a good joke: it needs no explanation.

Attributed

The greatest joy in programming is to write a program that works correctly the first time.

Attributed