> I write an average of five new programs every week. Poets have to write poems. I have to write computer programs. It seems more obvious now that I read it. A lot of programmers out there, including myself, are looking for ways to improve their skills and I never thought to myself to write more programs. And not just programs for the sake of programs, but programs that force you to explain to the computer that you u…
>The ceramics teacher announced on opening day that he was dividing the class into two groups. All those on the left side of the studio, he said, would be graded solely on the quantity of work they produced, all those on the right solely on its quality. His procedure was simple: on the final day of class he would bring in his bathroom scales and weigh the work of the "quantity" group: fifty pound of pots rated an "A"…
For Donald Knuth, good coding is synonymous with beautiful expression
181–190 of 229 posts
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#182Earlier quoted context omitted.
> is a program from December 2019 that "finds n-bit binary squares that are palindromic". No dis-respect for Donald Knuth (who of course I found orders and orders of magnitude above programmers such as myself) and no dis-respect to people that found those types of programs interesting, but there are also programmers (like me) for whom those programs are just simple riddles, with almost no interest whatsoever. They're…
Well, yes, of course. The question was about the sort of little programs someone could write daily, and the answer resembles crosswords or sudoku, which many people are in the habit of completing once a day. Would completing one integer sequence algorithm (brilliant suggestion btw!) change the world around you? No, of course not. Would it make you a better programmer , though? Certainly it would. Which would mean, wh…
Depends on the sequence, of course. I hear a lot of people would be interested in a fast algorithm for computing membership in OEIS A000040.
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#183Earlier quoted context omitted.
Well you can write an interpreter or a compiler for a simple language you design. You can try to make text-based games. You can make a bare-bones browser. You can write a simulator for ..say.. classical mechanics. Are none of these interesting for you?
You can't really write five of those in a week.
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#184Earlier quoted context omitted.
I'm a frequent user of SO, but I find leetcode [1] much better when I just want to practice coding / problem solving. Their free account is more than enough to have some fun ;) [1] https://leetcode.com/
I disagree. Leetcode and related sites have problem descriptions that are often vague or nonsensical. Just figuring out what the author is trying to say is more of a challenge than the actual program sometimes.
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#185Earlier quoted context omitted.
> As a professional musician, you have to make sure your 70%-version is good enough that people gladly pay for seeing it. Or you just do electronic music, so that's not an issue!
A lot of live electronic music performances involve some pretty serious showmanship.
Also, a lot of other live electronic music performances have almost zero showmanship, so there's that too.
(Speaking as an electronic musician)
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#186Earlier quoted context omitted.
True. The editor on the left side does look like emacs.
That's the FVWM window manager. His FVWM config (or at least some version of it) is available if you're curious: https://www-cs-faculty.stanford.edu/~knuth/programs/.fvwm2rc .
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#187Earlier quoted context omitted.
I think MATLAB is a little bit of a problem. Or at least, I want to kill myself whenever I have to use it. Python too although in more subtle ways (I like to abuse the type system, Python is just a hacked together pile of shit with tolerable syntax) Physics textbooks tend to get "unique" when you get to topics like Quantum Field Theory. Basic Textbooks are usually fairly to the point. "Advanced Engineering Mathematic…
With Matlab, you can immediately create a Matrix and transpose it, find the inverse...etc. I think it is optimized really well for undergraduate excercises that are really simple (I have two numerical methods textbooks which use Matlab fine). I agree that anything more complex than a couple of functions and a loop is probably better off somewhere else in a lot of cases. With that being said, it has built-in support f…
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#188Earlier quoted context omitted.
How about defining your own idea of success in life? Taking your utility function, your definition of success, from someone else, is only one step removed from being jealous of someone on Instagram. Think, and judge, for yourself.
Oddly, this comment seems mainly to put down the GP precisely for thinking and judging for themselves. Please allow people to like and utilize the good ideas of others. Thankfully, we don't have to invent every wheel we use.
It's true we don't have to invent every wheel. But it's also true that we don't have to treat invented wheels as gospel. There's more than one standard for living a good life, which depends on the person.
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#189I tend to be a good writer and able to express specific feelings easily. Should I learn to code?
Re: For Donald Knuth, good coding is synonymous with beautiful expression
#190Earlier quoted context omitted.
I think what he has in mind are small programs that do some kind of nontrivial computation without much in the way of IO or UI. For example, [1] is a program from December 2019 that "finds n-bit binary squares that are palindromic". A great way to get into this kind of thing if you're stuck for ideas is to go through the Online Encyclopedia of Integer Sequences [2] and just write little programs to print out the firs…
> is a program from December 2019 that "finds n-bit binary squares that are palindromic". No dis-respect for Donald Knuth (who of course I found orders and orders of magnitude above programmers such as myself) and no dis-respect to people that found those types of programs interesting, but there are also programmers (like me) for whom those programs are just simple riddles, with almost no interest whatsoever. They're…
Calling his exercises simple riddles is disrespectful. It's like calling doing a 5km run every morning, simple walking. The proof is in the pudding, he has impacted the world in a profound way.
But on a more positive note. Which non-cs programmer heroes exists today? I'm thinking John Carmack.