News for hackers. Stuff that matters.
Re:For Donald Knuth, good coding is synonymous with beautifu... by david_w on Friday April 17, 2020 @11:08AM (#22899642)
I have a folder named "proofs" on my machine which is just this. About 1500 and counting little programs that demonstrate or prove that something works some way or another. The class name expresses the proven fact. When I find out I am wrong, I change the name of the class to reflect the correct understanding. I read through the names in my IDE when I need to know some detail about something I've forgotten.
Re:For Donald Knuth, good coding is synonymous with beautifu... by minkzilla on Friday April 17, 2020 @06:40PM (#22903654)
Could you give some examples? This sounds really interesting.
Re:For Donald Knuth, good coding is synonymous with beautifu... by david_w on Saturday April 18, 2020 @12:15PM (#22908694)
Sure. In Java a class named :

ArraysOfConcreteParameterizedTypesAreDisallowed

The body of this class is a proof of this fact.