3 ms·
The programming mistakes people make relating to time are legion. I feel like time/date, floating point and crypto are areas where nearly everyone (not just pro
by __jal 10y ago
The programming mistakes people make relating to time are legion. I feel like time/date, floating point and crypto are areas where nearly everyone (not just programmers) would hugely benefit by coders only using libraries written by the very few who are actually competent to write them[1].
And anyone who thinks they are qualified to write time related code by virtue of having coexisted with clocks and time definitely should not be writing time related code.
[1] Time handling is different than FP and crypto, in that most of the complexity is human-created and policy driven rather than deep math, but for whatever reason people really don't understand that time handling is very complex - it seems to be widespread Dunning-Kruger. So they repeatedly make bad mistakes with very strange-seeming trigger conditions that can't be debugged on demand until someone realizes it is a time related bug.