News for hackers. Stuff that matters.
Re:Dates and Times in JavaScript – A New API for Dates from ... by moralestapia on Thursday July 09, 2020 @03:38PM (#23784178)
A comment on the side,

>JavaScript Date is broken in ways that cannot be fixed without breaking the web.

I really dislike the arrogant tone that many "new" people employ when talking about some "old" thing they are trying to "improve". (Quotes are there to indicate sarcasm).

Date is not 'broken', it may just not do whatever the author wishes it did; it is not 'broken' in the sense of failing to perform its intended function adequately.

I hope people could change their ways and be a bit more decent in general.

Aside from that, I welcome the new API as I think it would be an improvement over what we have now.

Re:Dates and Times in JavaScript – A New API for Dates from ... by ryzokuken on Thursday July 09, 2020 @04:51PM (#23785054)
Date is "broken" in that it aged pretty poorly, has a very non-ideal API surface and exposes developers to a number of footguns, that could, ideally, be avoided.

The fact that a vanishingly small percentage of JavaScript developers use Date for non-trivial applications is a great indicator of these failures.

Re:Dates and Times in JavaScript – A New API for Dates from ... by Spivak on Thursday July 09, 2020 @03:45PM (#23784259)
I think https://maggiepint.com/2017/04/09/fixing-javascript-date-get... and https://maggiepint.com/2017/04/11/fixing-javascript-date-web... are better links for the motivations of what parts of Date can't be fixed without needing a new API.
Re:Dates and Times in JavaScript – A New API for Dates from ... by swrobel on Saturday July 11, 2020 @08:20PM (#23807443)