When you write a program, think of it primarily as a work of literature. You're trying to write something that human beings are going to read. Don't think of it primarily as something a computer is going to follow. The more effective you are at making your program readable, the more effective it's going to be: You'll understand it today, you'll understand it next week, and your successors who are going to maintain and modify it will understand it.
It is much more rewarding to do more with less. - Donald Knuth
It is much more rewarding to do more with less.
- Donald Knuth
Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald Knuth
Beware of bugs in the above code; I have only proved it correct, not tried it.
If you optimize everything, you will always be unhappy. - Donald Knuth
If you optimize everything, you will always be unhappy.
Science is what we understand well enough to explain to a computer. Art is everything else we do. - Donald Knuth
Science is what we understand well enough to explain to a computer. Art is everything else we do.
If you find that you're spending almost all your time on theory, start turning some attention to practical things; it will improve your theories. If … - Donald Knuth
If you find that you're spending almost all your time on theory, start turning some attention to practical things; it will improve your theories. If …
Computers are good at following instructions, but not at reading your mind. - Donald Knuth
Computers are good at following instructions, but not at reading your mind.
We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. - Donald Knuth
We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.
An algorithm must be seen to be believed. - Donald Knuth
An algorithm must be seen to be believed.
Programs are meant to be read by humans and only incidentally for computers to execute. - Donald Knuth
Programs are meant to be read by humans and only incidentally for computers to execute.
Login to join the discussion
Login to join the discussion