News for hackers. Stuff that matters.
Re:For Donald Knuth, good coding is synonymous with beautifu... by lhorie on Thursday April 16, 2020 @01:07PM (#22891400)
Something that I found useful is taking the concept of katas from martial arts. Writing the "same" program multiple times, but trying to refine the parts I didn't like in the previous iteration (e.g. try writing in less code, with smaller functions, with less libraries, in a more testable way, etc).

It's specially rewarding to do this exercise with utility libraries, as it teaches you about the nuances one abstraction level below (both in terms of learning what is possible but not exposed by the abstraction and in terms of learning what pitfalls exist). Many times I find that it's more elegant to drop down one abstraction level to accomplish something than to add more abstractions on top due to lack of understanding outside my primary abstraction level.

Re:For Donald Knuth, good coding is synonymous with beautifu... by runeb on Friday April 17, 2020 @09:03AM (#22898593)
This concept of Code katas are well established. I learned it from the pragmatic programmer book [1]

[1] https://en.wikipedia.org/wiki/Kata_(programming)

Re:For Donald Knuth, good coding is synonymous with beautifu... by Enginerrrd on Friday April 17, 2020 @01:05PM (#22900795)
I think this is a really high value endeavor and efficient use of time. It's the same way great writers learn how to write and produce great works.