Re:Day.js Fast 2kB alternative to Moment.js with the same mo...
by maigret on Sunday October 09, 2022 @05:27AM
(#33139371)
You can still add a library once it’s really needed and an area is proved to cause bugs. Most of the times though, developers will add them upfront “just in case”, making the bundles always heavier and thus harming the user experience with a slower UI.
[ Parent
| on HN ]
Re:Day.js Fast 2kB alternative to Moment.js with the same mo...
by epgui on Sunday October 09, 2022 @01:02PM
(#33142999)
I’d argue that we already know how time works, so the proof exists up front and there is no “just in case”.
You could make an argument that there are more important things to fix, but then you’d be deciding consciously that it was okay to ship software known to be incorrect.