3 ms·
Why are there so many stories about leap year bugs?
by 2muchcoffeeman 3y ago
Why are there so many stories about leap year bugs?
- ImaCake 3y agoBecause programmers take shortcuts. Its easier to type x - 365 than to import Calendar and then date(x) - timedelta(1 year).
- dimaaan 3y agoAnd standard library design errors also. Properly designed date/time API invented relatively recently. System.DateTime (.NET) - 2002 | System.DateTimeOffset - 2005 Joda time (JVM) - 2005 | java.time - 2014 Temporal (JavaScript) - still experimental
- bombcar 3y agoIt’s strange to me, it hasn’t been than long since a leap year and I don’t remember as many last time.
- bhpm 3y agoIt’s the first go-around for the jr devs who went to school during the pandemic :)