What a ridiculous idea. As hard to read as it is dumb!
For a senior engineer like myself with decades of experience it is trivial to see how to fix this to make it much more readable.
1/ pick a sunny day
2/ at each hour, measure the bearing to the sun
3/ encode as a dict[str, float] e.g.
{“twelve”:180.00}
4/ sort the hours by dict.get
Voila.
As an added bonus, for some reason this ends up sorting the minutes and seconds too. (“# wtf?!”)
For now, I was only able to fix the hours when I could see the sun (eleven, twelve, and two to eight — I don’t get up very early and I like lunch). Patches form the arctic circle welcome :P
I also need to tilt my head a bit as eleven is at the top instead of twelve. Other than that I would say it’s a considerable improvement on the OP’s rather naïve implementation! Scoff!
I love the fractal nature of this, where the big shape of one two three four... is then roughly repeated both on a slower scale (twenty thirty forty...) and on a narrower scale (twenty-one twenty-two twenty-three twenty-four...).
I'm now wondering the hausdorf dimension of the graph of alphabetical numbers <n, and how other languages might compare.
For those who don’t know, the accent indicates that the -ed ending is pronounced as a separate syllable, I.e. “a-curse-ed”. For that extra mysterious, old-timey feel!
11 comments
[ 2.4 ms ] story [ 43.8 ms ] threadFor a senior engineer like myself with decades of experience it is trivial to see how to fix this to make it much more readable.
1/ pick a sunny day
2/ at each hour, measure the bearing to the sun
3/ encode as a dict[str, float] e.g.
4/ sort the hours by dict.getVoila.
As an added bonus, for some reason this ends up sorting the minutes and seconds too. (“# wtf?!”)
For now, I was only able to fix the hours when I could see the sun (eleven, twelve, and two to eight — I don’t get up very early and I like lunch). Patches form the arctic circle welcome :P
I also need to tilt my head a bit as eleven is at the top instead of twelve. Other than that I would say it’s a considerable improvement on the OP’s rather naïve implementation! Scoff!
I'm now wondering the hausdorf dimension of the graph of alphabetical numbers <n, and how other languages might compare.
The labels only relevant to the hours. For some reason the hour labels don’t align well to where the hour hand is.
For those who don’t know, the accent indicates that the -ed ending is pronounced as a separate syllable, I.e. “a-curse-ed”. For that extra mysterious, old-timey feel!