Donald Knuth

Computer Science American 1938 346 quotes

Author of The Art of Computer Programming

Quotes by Donald Knuth

Let us change our traditional attitude by learning to love the 'goto' statement, rather than to hate it.

Structured Programming with go to Statements 1974

The best way to prepare for the future is to invent it.

Unknown

A good algorithm is like a good recipe: it tells you exactly what to do, step by step, to achieve a desired result.

Unknown

Computer science is no more about computers than astronomy is about telescopes.

Selected Papers on Computer Science 1986

The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music.

Computer Programming and the Art of Computation 1962

The best programs are written so that the computer can understand them, but also so that humans can understand them.

Unknown

If you optimize everything, you will always be unhappy.

Unknown

I find that a good program is like a good piece of music, or a good poem, or a good painting. It has a certain elegance, a certain beauty, a certain harmony.

Unknown

The most important property of a program is whether it accomplishes the intentions of its user.

Unknown

The purpose of computation is insight, not numbers.

Computer Programming and the Art of Computation 1962

A program is a work of art, and it should be treated as such.

Unknown

The greatest joy in programming is the joy of creation.

Unknown

My life is a constant struggle between my desire to write beautiful code and my desire to write useful code.

Diary entry

The most important thing in life is to find something you love to do, and then do it with all your heart.

Letter to family

I believe that the purpose of education is not to fill a mind, but to open one.

Correspondence with a student

The greatest joy in programming is the moment when a complex problem finally yields to a simple solution.

Letter to a friend

I often feel like a detective, searching for clues in the vast wilderness of algorithms.

Diary entry

Truth is not found in the absence of error, but in the relentless pursuit of it.

Letter to a colleague

The beauty of mathematics lies in its ability to reveal the hidden order of the universe.

Correspondence with a mathematician

I am a firm believer that the best way to learn is by doing, and the best way to teach is by inspiring.

Letter to a student