4 ms·
It is a good format for sorting, but misses the point of use. As humans, we want to read the most significant data to our use case first. The author confuses v
by antihero 6y ago
It is a good format for sorting, but misses the point of use. As humans, we want to read the most significant data to our use case first.
The author confuses value to the reader with magnitute. In normal numbers, they happen to be the same thing.
In most cases, we want to discern between days first, them months, then years. If you look at a list of dates:
2021-01-01
2021-01-02
2021-01-03
2021-01-04
You're just going to be seeing a heap of noise before you see the actual number you care about.
If you consider that days are the most valuable, then months, then years, you get the UK/European format.
01/01/2021
02/01/2021
03/01/2021
04/01/2021
- TeMPOraL 6y ago> In most cases, we want to discern between days first, them months, then years. That really, really depends on particulars on your life. While I strongly dislike the US format of putting the month first, the irony is, the month is the most important datum for most of the dates I read with. Year is usually obvious given particular context (it's typically either the current one, the next one, or sometimes the previous one). Days don't matter for anything that isn't in the same month. I'd go as far as saying that months are typically the most important for most people in XXI century, then days, then years. But that's no problem for punctuated date formats in general. People don't read things linearly at letter level, they deconstruct tokens in a random-access way. Separators like - or / help clearly identify which part is which (compare how easy it is to read 03/01/2021 with 03012021), and there's no extra cost associated with reading off the part in the middle. The benefits of YYYY-MM-DD notation on top of the above are: - With all terms being fully expanded, dates line up vertically as well, which helps when dealing with stacks of documents or tabular data. - Being ordered by magnitude like normal numbers provides a Schelling point for interpretation[0]. That is, when a random person who wasn't exposed to much computing or internationalization before sees 2021-01-03, they will automatically assume that 01 must be the month, because writing YYYY-DD-MM would be dumb and inconsistent with how numbers are written in general. Yes, both of these apply to DD/MM/YYYY, but, YYYY-MM-DD also gets you sane lexicographic sorting, which the UK/European format doesn't. It's super useful feature not just when dealing with computers, but also when perusing any kind of date index. ISO 8601 dates work much like words in a dictionary, you can binary-search through them. -- [0] - https://en.wikipedia.org/wiki/Focal_point_(game_theory) https://en.wikipedia.org/wiki/Focal_point_(game_theory)
- inetknght 6y ago> In most cases, we want to discern between days first, them months, then years. If you look at a list of dates: > 2021-01-01 > 2021-01-02 > 2021-01-03 > 2021-01-04 With you so far. > You're just going to be seeing a heap of noise before you see the actual number you care about. 100% disagree. There's less noise here than having days from other months or years mixed in. If there's noise here then either I am on the wrong page and need to navigate to the correct year or else the data I want has few data points. > If you consider that days are the most valuable, then months, then years, you get the UK/European format. > 01/01/2021 > 02/01/2021 > 03/01/2021 > 04/01/2021 Maybe. Your list is contrived. Here's another. 01/01/2021 01/03/2021 01/04/2020 01/10/2021 01/11/2019 02/01/2021 02/13/2019 02/20/2021 Those numbered days are completely irrelevant to each other in most circumstances. Now other months and even other years are mixed in. Expand this list to 1000 data points and good luck figuring out where your data's at.