Donald Knuth on the rewards of computer programming
46 comments
@palmin I totally agree- though the second paragraph does disturb me a wee bit. @toooobeeee @palmin no, most of Knuth's programs are written as literature, and often for educational purposes. @toooobeeee @palmin ever heard of the demo scene? Are those programs "useful"? Probably not, but they are certainly interesting and worth writing! @toooobeeee @palmin not always, it can be just for the sake of it, and I quite liked the apparent dissociation between fun to write and fun to read. I'm sure these perl japh programs were hella fun to write! https://retas.de/thomas/computer/programs/useless/japh/index.html There's even contests for the most obfuscated programs! @palmin Fun being highly subjective. Knuth's thought that littering your code with comments in latex made it fun to read. https://ctan.uib.no/web/c_cpp/cwebx/examples/wc.w For quotes I prefer "Beware of bugs in the above code - I have only proved it correct, not tried it." @palmin Going by what I see on here, most developers seem to score at best 0.5 out of 3. @palmin He's not working in a corporate environment. He doesn't know the Jira shuffle. :p The quote predates Jira by ten years but one could also argue that all the corporate rituals aren’t really computer programming. @palmin Doesn't this apply to most creative acts, especially the practical arts or engineering? @profdc9 Many creative fields have no economic reward unless you are among the top ‰ Computer programming is very fortunate in that respect. @palmin I respect Knuth's opinion on this, but I think one of the biggest stresses in software engineering is that the people who find computer programs fun to read are not only a minority, they're a vanishingly-small minority. I've never done a formal poll, but my gut suggests if I ask people "Would you rather spend more time writing code or more time doing peer reviews" the answer tilts very heavily. ... oh wait, I'm on Mastodon. @disappearinjon @palmin I don't know my poll question is phrased well enough to tease out that gap... But I'm not sure the gap is as wide (for most devs) as many believe. I've read Knuth, for instance. He's inscrutable. It is, perhaps, the case that his programs in his tutorial language don't count as "well-written programs" in this sense (perhaps partially because his example language is one step removed from assembly). Substitute program for proof, and I agree, except for the last item, economic reward. @palmin Clearly, few engineers at Google have read Knuths The Art of Computer Programming, but surely they have it on their bookshelf to impress people. @palmin Knuth is amazing. I recommend everyone to listen to his interviews with Lex Fridman @palmin Computer programs are annoying to write, and badly-written computer programs are annoying to read. One of life's greatest miseries can be the composition of a computer program that you know will be frustrating for other people to read, and for yourself to read. Computer programs can also impede useful work. One of life's greatest sources of despair is the knowledge that something you have created is contributing to the regress or poverty of society. @palmin @cliffordheath maybe it is time for a professional change of scenarie if that is your personal experience with computer programming 😬 @palmin I was inspired to use this quote at the start of the lecture I delivered today, which was the final lecture of my course on intro programming. Funnily enough this is the right ordering for programming education; the programs they write for class are not put to practical use, and the experience *costs* them money, but hopefully they do get fun and satisfaction @palmin I wonder if he would still think that if he ever came across modern "enterprise" software. 😅 @palmin @AlexaFontanilla2024 These are great books but nothing has required me to read as slowly and deliberately to understand it as these. @palmin this is a great quote. In my data structures and algorithms lecture I like to show these two quotes that are somewhat related. |
@palmin I had never seen that, it’s lovely