110
votes

What's your favourite quote about programming?

One quote per answer, and please check for duplicates before posting!

0

166 Answers 166

30
votes

There are 10 kinds of people in the world — those who understand binary and those who don't.

15
  • 12
    and those who confuse it with ternary
    – eds
    Commented Sep 4, 2010 at 1:30
  • 51
    Every base is base 10.
    – Larry Wang
    Commented Sep 4, 2010 at 3:10
  • 4
    10 in what base?
    – MIA
    Commented Sep 21, 2010 at 22:37
  • 2
    @Malfist: Click.
    – g.f
    Commented Sep 28, 2010 at 21:55
  • 2
    all your base 10 are belong to us Commented Nov 12, 2010 at 10:08
30
votes

Keep it simple, stupid!

The KISS principle

2
  • 1
    Is that specifically a programming quote? Commented Sep 10, 2010 at 19:22
  • 5
    No, it's a generally-applicable engineering principle. Commented Sep 13, 2010 at 0:01
30
votes

Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.
  — Stan Kelly-Bootle

29
votes

A clever person solves a problem. A wise person avoids it.
  — Albert Einstein

2
  • 5
    Programming quote?
    – Jonas
    Commented Sep 2, 2010 at 9:06
  • 22
    This quote is very relevant to programming
    – finnw
    Commented Sep 6, 2010 at 3:16
29
votes

Being a good software engineer is 3% talent, 97% not being distracted by the internet.

— Unknown, appropriated

2
  • 5
    That's not true at -- d'oh! Commented Oct 26, 2010 at 15:25
  • 4
    ...and 1% avoiding fence post errors.
    – Roger Pate
    Commented Oct 28, 2010 at 2:35
28
votes

A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.
  — Bill Bryson

25
votes

If you want to set off and go develop some grand new thing, you don't need millions of dollars of capitalization. You need enough pizza and Diet Coke to stick in your refrigerator, a cheap PC to work on and the dedication to go through with it.
  — John Carmack

2
  • Yep greatest quote I think so far, especially since Carmack showed multiple times (Commander Keen, Wolfenstein, Doom, Quake, etc) how to do it :)
    – Nils
    Commented Jan 20, 2011 at 10:03
  • @nils, one word: Daikatana :ducks: Commented Jun 20, 2011 at 14:02
25
votes

All problems in computer science can be solved by another level of indirection... Except for the problem of too many layers of indirection.

— David Wheeler

25
votes

What's the simplest thing that could possibly work?

— Ward Cunningham

1
  • I was once at a programming competition, and time was almost up, and we couldn't get our last program to compile. So, in desperation, we deleted the bits that wouldn't compile, and ran the program. And it worked. Perfectly. To this day I have no explanation for how this could be the case because, by our measure, the part that we deleted was the part that was supposed to be doing the work. Commented Jun 20, 2011 at 21:25
25
votes

Testing can only prove the presence of bugs, not their absence.

— Edsger W. Dijkstra

1
  • ... so let’s not bother! :)
    – Timwi
    Commented Dec 26, 2010 at 12:58
23
votes

There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

Jeremy S. Anderson

13
  • 3
    This quote is wrong. Just wrong. See web.morons.org/feature/rants/bsdlsd.jsp
    – imgx64
    Commented Sep 22, 2010 at 3:00
  • 3
    That's a shame because it's a great phrase. Commented Sep 29, 2010 at 11:26
  • 2
    @Neil: "If 'accurate' isn't a requirement, I could write an arbitrarily great phrase," to paraphrase another quote. :)
    – Roger Pate
    Commented Oct 11, 2010 at 16:08
  • 2
    What exactly is LSD?
    – hasen
    Commented Nov 12, 2010 at 10:19
  • 2
    @hasen j, Traditionally, pounds, shillings, and pence, but nowadays a hallucinogen.
    – TRiG
    Commented Dec 1, 2010 at 18:45
23
votes

I don't care if it works on your machine! We are not shipping your machine!

-- Vidiu Platon (whoever that is)

2
23
votes

When all you have is a hammer, everything starts to look like a nail

5
  • 1
    Attributed to Abraham Maslow (en.wiktionary.org/wiki/…) Commented Sep 9, 2010 at 18:05
  • This quote is true, but many times the converse is also true: until you have a hammer, nails are an unsolvable problem. Commented Dec 26, 2010 at 7:35
  • 1
    @Yar Turn your pliers sideways.
    – Mark C
    Commented Mar 2, 2011 at 21:19
  • Thanks @Mark C that worked, but now the program quits with no stacktrace... Commented Mar 5, 2011 at 8:13
  • @Yar If enough of the nail is sticking out, you can pull it out with your pliers. Not all hammers have a notched end, and some nails can't be pulled out like that (so you need a nail pull).
    – Mark C
    Commented Mar 5, 2011 at 16:22
21
votes
Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't needed?' Improve the code and then document it to make it even clearer.

-Steve McConnell

21
votes

There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies.

— C.A.R. Hoare

20
votes
+100

A computer lets you make more mistakes faster than any invention in human history—with the possible exceptions of handguns and tequila.
  — Mitch Ratcliffe

4
  • 1
    I had a specific answer in mind for my bounty originally, but I discovered you can't apply them instantly! So I let it runs its course, and even though there's about a day left, this is my favorite answer from the past week. One I'd heard before, but never knew who said it. Thanks!
    – Roger Pate
    Commented Oct 14, 2010 at 0:42
  • @RogerP: What was your specific answer? Is it in the big thread?
    – Mark C
    Commented Oct 21, 2010 at 5:44
  • @Mark: tinyurl.com/knuth-premature
    – Roger Pate
    Commented Oct 21, 2010 at 5:56
  • @RogerP: You are too easy, trying to give bounties for answers you already know!
    – Mark C
    Commented Oct 21, 2010 at 6:29
19
votes

A programmer is a device for turning caffeine into code.

(Not original to me, but associated with me through appearances on DotNetRocks etc. Lifted from a Usenet sig, I long ago forgot whose, which was no doubt inspired by Paul Erdos.)

3
  • Erdõs -- indeed! My grandfather (who knew him!) was fond of the one about mathematicians and coffee.
    – Michael H.
    Commented Sep 23, 2010 at 17:54
  • @khedron: Ahem. It’s Erdős, not Erdõs.
    – Timwi
    Commented Dec 26, 2010 at 12:59
  • @Timwi: My apologies!
    – Michael H.
    Commented Jan 26, 2011 at 16:35
19
votes

There, it should work now.

— All programmers

18
votes

Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

Martin Fowler (in his book Refactoring)

18
votes

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

18
votes

You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.
  — Joe Armstrong on object-oriented programming

3
  • 2
    Still laughing... |)
    – AareP
    Commented Dec 16, 2010 at 19:00
  • wouldn't that be more true of VMs ? Commented Dec 26, 2010 at 2:24
  • The term 'OO' was invented by Smalltalkers, and Smalltalk runs on a VM and is often deployed as a VM image.
    – 9000
    Commented Dec 26, 2010 at 19:20
18
votes

A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++;

Not quite a quote as such, but I little limerick I've always liked.

Source piercings - bash.org/?845468

2
17
votes

My old answer from SO:

If the code and the comments disagree, then both are probably wrong.

Another good website: "Quotes about Tech Writing"

1
17
votes

Any sufficiently advanced technology is indistinguishable from magic.

-- Arthur C. Clarke

5
  • 4
    "Any sufficiently advanced magic is indistinguishable from technology" — Larry Niven.
    – Joe D
    Commented Oct 24, 2010 at 16:26
  • 2
    "Any technology which is distinguishable from magic is insufficiently advanced." (Can't remember.)
    – TRiG
    Commented Dec 1, 2010 at 18:53
  • "Any sufficiently advanced being can distinguish technology from magic."
    – Timwi
    Commented Dec 26, 2010 at 13:03
  • Any sufficiently advanced being cannot tell magic from technology.
    – Antsan
    Commented Jan 20, 2011 at 20:41
  • 2
    Sufficiently advanced incompetence is indistinguishable from malice. Commented Jan 27, 2011 at 21:56
14
votes

To understand recursion, you first need to understand recursion

13
votes

"For a successful technology, reality must take precedence over public relations, for nature cannot be fooled."

-Richard Feynman (Rogers' Commission Report into the Challenger Crash, Appendix F - Personal Observations on Reliability of Shuttle)

More succinctly:

"You can't lie to the compiler."

-Andrew Stevenson

2
  • ...or at least if you do lie to the compiler, it will get its revenge. Commented Sep 12, 2010 at 22:40
  • 5
    That story still galls me. Imagine that, Dr. Richard Feynman, according to the book I read, had to threaten to withhold his signature unless his account of the accident was included in the official report. It was included as an appendix, so as to say, "The official investigation is over, and now here is some speculation from this eccentric."
    – Mark C
    Commented Sep 28, 2010 at 12:59
13
votes

Software is like sex: it's better when it's free.

— Linus Torvalds

8
  • 9
    Can you split this in two different answers so that they can be voted independently?
    – Wizard79
    Commented Sep 2, 2010 at 7:36
  • 8
    The real question is, how did Linus come to find this out? Commented Sep 29, 2010 at 14:49
  • [citation needed] :-) Commented Oct 24, 2010 at 20:28
  • @Stefano Palazzo: Read his autobiography "Just For Fun". Oh, and in case you meant the "sex is better when it's free"-part...ahm...that's OT here. ;)
    – Bobby
    Commented Oct 29, 2010 at 8:51
  • 4
    Software is like sex because it's never really free.
    – Darel
    Commented Jan 20, 2011 at 19:39
13
votes

On the seventh day, God said, "Ship it! We'll release patches later."
  — Josh Flachsbart

12
votes

The real question is not whether machines think but whether men do.

— B. F. Skinner

Related more to AI than to simple programming, but I still like it.

11
votes

The difficulty of a bug can be measured as the distance, in lines of code, from the cause of a bug to the visible symptom of a bug.

The Klophaus Equation of Bug Difficulty

1
  • The problem is that you don't know how difficult a bug is until you find it.
    – Mark C
    Commented Mar 2, 2011 at 21:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.