I'll have to add some of these to my list of quotes that emacs greets me with. Current list:
(defvar scratch-quotes
(list
"Everybody has a plan until they get punched in the mouth. - Mike Tyson"
"Look, I made a hat...where there never was a hat. - Finishing the hat, Sondheim"
"Just fucking figure it out."
"The universe is not here to please you. - Charles Murtaugh"
"Your life is your life. The gods await to delight in you. - Bukowski"
"Join the force and get a pension. - Salesman"
"Beware of things that are fun to argue. - Eliezer Yudkowsky"
"However beautiful the strategy, you should occasionally look at the result. - Winston Churchill"
"Truth is much too complicated to allow anything but approximations. - John Von Neumann"
"Writing program code is a good way of debugging your thinking. - Bill Venables"
"Don't tell me what you value. Show me your budget, and I'll tell you what you value. - Joe Biden quoting his father"
"Most haystacks do not even have a needle. - Lorenzo"
"Experiment and theory often show remarkable agreement when performed in the same laboratory. - Daniel Bershader"
"The important work of moving the world forward does not wait to be done by perfect men. - George Eliot"
"It is astonishing what foolish things a man thinking alone can come temporarily to believe. - Keynes"
"The purpose of computing is Insight, not numbers. - Richard Hamming"
"Work on stuff that matters. - Tim O'Reilly"
"Sometimes magic is just someone spending more time on something than anyone else might reasonably expect. - Teller"
"You have to say something. It can't all be technique. - Woody Allen (on great actors)"
;; Paraphrased from a HN comment
"Perfectionism is a failure to optimize across a complex goal space, settling, instead, on ignoring the difficult prioritisation problem in favor of over-optimizing a limited set of tangible and easily-defined goals over longer-run priorities"
))
Don't tell me what you value. Show me your budget, and I'll tell you what you value.
That's really good. Particularly as it relates to non-financial budgets, such as a time budget. In fact it immediately got me out of my chair and up for some physical activity!
For whatever reason, making the case that code that actually performs some useful computation should be closer to the exception rather than the rule tends to result in people completely losing their shit.
I think the issue is that people don't want overhead. I don't want to wade through 12 lines of useless try raises to get my work done. I want to be able to enumerate the exceptions when I need them. For example, I may want to call my_function.possible_exceptions, but there is an issue here as well, two exceptions may be raised with different messages, so the class of the exception alone is not an acceptable identifier of what the exception is. Even attempts to create, say, a global register of unique exceptions would fail because of how dynamic a language like Python is.
In general readability of code has more to do with something like this:
valid_filename = filename.ends_with? ".txt"
return File.open(filename) if valid_filename
Versus something like this:
return File.open(fn) if fn.ends_with? ".txt"
The former uses a longer variable that clearly shows what it is and reduces the mental overhead of having to figure out why we're returning (because the file is valid, we're finished with this function as intended).
That really sunk in for me when I realized that the entire point of OO classes (and even functions) is just to arrange the code in a way that makes sense to humans.
"Programs must be written for people to read, and only incidentally for machines to execute."
Not this. x1.
Now if this were true, you would read these programs as you would literature. But you don't. Instead, you only use these programs as you would a tool and then complain when they don't do what you want them to do fast enough or reliably enough.
In literature, you have expectations but not certainty about the ending. Only with a bad tool do you expect anything but certainty about the ending. Indeed the hallmark of a good program is that you don't have to read it to know how it ends.
Another anti-parallel is that literature (literate programming) admires originality whereas good engineering admires plagiarism.
You seem to be willfully abusing the relationship between literature and literate programming. Knuth was being provocative in his paper in linking them, but these are very clearly not the notions Knuth has in mind.
His purpose is altogether simpler. From his paper, the literate programmer focuses on "exposition". He or she "chooses the names of variables carefully and explains what each means", and "strives for a program that is comprehensible... using a mixture of formal and informal methods that reinforce each other."
Literate programming is not there to entertain you. It's there to be understood. Beware the programmer who disdains comprehension of their programs.
No, I am not willfully abusing but thank you anyways.
Programs must be written for people to read, and only incidentally for machines to execute.
Literate programming is not there to entertain you. It's there to be understood. Beware the programmer who disdains comprehension of their programs.
Programs are pieces of engineering. As such they are meant to be used. Beware the programmer who admires their programming too much. If they have elegantly solved a problem that will come out in their solution's use and not in its literate form.
Yes, programs are there to be used. Literate programming as a technique, however, is designed to facilitate those programs being understood. I'm not sure how you conclude that this has anything to do with programmers "admiring their programming."
Did it for code reviews when I was code reviewing C[1]. It really does help. Paper still has a place. Its amazing what you see on a page of paper that doesn't get seen on the screen.
1) which, since I was doing the code reviews, I wasn't allowed to write any production code, because who would review my code? :(
For any non-trivial program, you can not keep the entire program in your head at once. Flawed human memory means that we forget details of the code six months later.
This means we need to read code, even our own code, to understand what it's doing. Code that is harder for us to read is harder to work on.
do you really disagree with the idea that writing code, like writing prose, should strive for human clarity? that you should be able to easily understand it without mental gymnastics? that the writer should revise, rewrite and edit the code, and take pride in succinct clarity? because the computer doesn't give a poop, but people do (including your future self)?
you seem to be making ancillary points while being deliberately obtuse about the central one.
Clarity is great. Clarity is really most awesome. Myself, I write clean readable code because the person who has to read it the most is me. Where I utterly disagree with the SICP drivel is its only incidentally nod to efficiency. What fatuous gratuitous twaddle.
Programs are meant to be used and only incidentally for people to read. Some programs, we'll call them closed source, can't even be read, not even by Richard Stallman.
BTW, SICP was a required text in 61A when I took it. Required but then like many bibles, never assigned and never read. A few years later, I tried to but couldn't and so I sold my copy on Amazon. Got $25 for it.
And regardless of the intention, code are read many, many more times than it is written, especially when you work in a company with multiple teams and that is spread out on multiple sites. And in my experience, badly written code causes bugs because the original intention is not clear.
Well the point is to get you thinking, so I wouldn't say it's pointless. If you've thought deeply enough about it to decide it doesn't matter, you've probably already absorbed the lesson you were supposed to learn. Most koans are completely pointless or vague, but in order to figure that out you have to understand it, and at that point you've already grown.
My favorite popular quotes are the ones that are borrowed from Shakespeare but stripped of all context, so they're commonly read as meaning something completely different.
Read books, or essays, or at least the whole dang poem (the quoted "The Second Coming" is really short!). It's nearly impossible to pack any kind of meaningful insight into a couple sentences.
I find the opposite: most quotes are incredibly insightful and powerful, but wasted on people who can't act on them, and insist on vague and pointless lives.
Why would you call that a personal attack? It's my standard opinion on quotes. I used the same wording used to dismiss them to make the message stand out more.
To paraphrase Chesterton quotes have not been tried and found wanting. They have been tried, found hard to abide to, and been abandoned.
> "Many big people were chasing me. I didn't know what to do. So I thought I would surprise them and throw it." - Garo Yepremian, Miami placekicker, after a disastrous attempt to throw a pass in the Super Bowl.
I don't understand this. What's the wisdom to be gleaned from this one?
You can learn a few things from this play that I think would help you in life. First is planning for the unexpected and knowing how to respond in a situation where you're about to panic. Given the context of the situation you win almost 100% of the time if you just fall down and do nothing after securing the ball. Great players recognize how to maximize their odds of winning, this rings true in many facets of life.
Second the whole sequence of events is simply incredibly funny, and this quote gives an answer to what everyone would ask after witnessing the play. "What was that guy thinking?"
> "It is said that there is a technical term for people who believe that little boys and little girls are born indistinguishable and are molded into their natures by parental socialization. The term is 'childless.'"
I have sometimes thought that one reason gay people might exist is that they're God's way of skewering the conservative idea that gender roles are absolutes fixed by nature. It occurred to me the other day that in the same vein, transgender people might be Her way of skewering the liberal idea that gender roles are total societal constructions.
I get this sentiment, but man, there are some really great, high quality (cinematography, acting, sound, creativity) tv shows being made today, albeit most on streaming/premium services. I've experienced tv that has moved me as much, if not more than many books I've read. To think that this medium is mindless or unnecessary completely undermines so much of the art and thought that goes into crafting some of these shows. I think the issue is drawing the line between film made as art, and the sort of vapid shows that this quote is most likely referring to.
Or the upcoming adams-westworld crossover where George III reveals that america is a theme park, the revolution has been fought many times and memory-wiped, and he only fought the war to get the americans past their julian jaynes preconsciousness.
(Of course this is revealed through G-III interviewing a nude john adams on a stool).
I've completed 9 days of 31 consecutive days of half marathons, everyday I take a picture of something inspirational/interesting on my run (easy on miami's south beach) but I also add a quote of the day, I'll probably use Mark Twain's quote today.
I ran xc/track in college, and I must say, that is likely a bad idea. You are going to hurt yourself, unless you've slowly built up to this. You should never increase your weekly mileage by more than 10% over the previous week. But don't take my word for it, I'm sure your body will let you know in the next week.
it's funny for the last week I have been running my last 8 with Robert "the raven" Kraft who is like the 6th or 7th leading streak runner - 8 miles a day for 42+ years, thru Miami hurricanes; heat/humidity; even hail. Nearly 120,000miles (just shy of 5x around the earth) and at 67 years old people are still waiting for him to stop just to say I told you so.
"Solving operating systems problems with hardware interrupts is a lot like solving your own personal problems with heroin - at first it sorta works, but after a while things just get out of hand." - Fred B. Schneider, PhD
"I often quote myself. It adds spice to my conversation."
-- George Bernard Shaw
It's a bit eye-rolling whenever a PG essay makes the top page here, but a page of PG's favorite quotes on HN in days when the US slips into a novel blend of kleptocracy and autocracy, the NYT notes the top five tech firms are basically monopolies, and the most successful of the last decade's startups prove fiscally inept at best, ethically-challenged at worst... well, poop.
HN has tons of threads on contemporary politics. PG's essays are insightful and, though not perfect, usually go deeper than everyday left vs right talking points.
HN has also become increasingly hostile to PG's views over time (for example, his inequality essay), so it's hardly an echo chamber. Personally, I preferred this place when there were more people who agreed with his basic worldview. And, though many in SV share his politics, he has a distinct way of thinking when compared with other billionaire thought leaders like Peter Thiel and Marc Andreesen.
I understand PG didn't submit it himself, but that it was submitted and upvoted, well, who cares? I'm surprised enough people care to make it hit the front page.