Re:Good Design is Imperfect Design, Part 1: Honest Names
by Xophmeister on Wednesday August 04, 2021 @06:40PM
(#28067389)
I came across this problem once before and came to the same conclusion. “A month” is an ill-defined unit, so I just don’t allow it to be representable in datetime arithmetic. You make the point that “1 day” would also fall under this category, but it’s less variable and so it being equal to “24 hours” is good enough.
[ Parent
| on HN ]
Re:Good Design is Imperfect Design, Part 1: Honest Names
by ithkuil on Thursday August 05, 2021 @03:11AM
(#28070780)
One can argue that when something works most of the times until it breaks in some edge cases (twice a year) it's actually more dangerous since you're unlikely to encounter those issues until it hits all of your customers at once.