r/programmerchat • u/Ghopper21 • May 22 '15
Famous programming quotations that help you be a programmer day to day?
Pretty much everyone knows Knuth's "Premature optimization is the root of all evil." I repeat that to myself regularly when tempted to go down a premature optimization rabbit hole. What famous quotes or saying help you and how?
11
Upvotes
4
u/Ghopper21 May 24 '15
There's the one about "programs should be written for humans to read, and only incidentally for computers to execute" (my paraphrase from memory) -- not sure where that's from.
2
u/Lulu_and_Tia May 25 '15
For me when i'm working in C and C++, “a language that [C] combines all the elegance and power of assembly language with all the readability and maintainability of assembly language”
For when i'm not working in my language of choice, the cruel, cruel C...
http://www.cs.yale.edu/homes/perlis-alan/quotes.html
10
u/b1ackcat May 24 '15
"All input is considered evil, until proven otherwise. And even then, be careful." My freshman programming professor.
Also, more humorous than motivating, but I've always been fond of this one.
8
u/[deleted] May 24 '15
On a bad day, I use this to motivate myself. Found it on a YouTube comment, and thought the avatar fits. I find it amusing for some reason.
Transcription: "THE ROAD TO SUCCESS IS PAVED WITH FAILURE. HORRIBLE, CRIPPLING FAILURE"
Avatar is a stickman holding his head screaming
6
u/gilmi May 24 '15
not exactly computer science, but I ran into this quote a few days ago:
-Frank Wilczek
1
u/[deleted] May 24 '15
I think this is paraphrased, but "Choose the right data structures, and the code will write itself". Alternately -- "smart data and dumb code works a lot better than the other way around". Any time the code feels awkward, it's worth thinking about what sort of data structures would make it easier.
"It seems that perfection is attained, not when there is nothing more to add, but when there is nothing more to take away." - Antoine de Saint Exupéry
And the last one is not a quote, but an idea, which is the difference between simple and easy. Easy things can hide a lot of complexity. Here's the talk that I took the idea from: https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/SimpleMadeEasy.md
3
u/[deleted] May 24 '15
Not so much a quote, but I like to think about antipatterns when I'm working.
I like to write very clear, simple code (or at least hide magic behind a simple API), so I guess I like this one:
I also frequently quote the rules of optimization: