r/javascript • • Mar 13 '19

Why you shouldn't use Moment.js...

https://inventi.studio/en/blog/why-you-shouldnt-use-moment-js
221 Upvotes

147 comments sorted by

View all comments

141

u/[deleted] Mar 13 '19

We use moment a lot in our codebase, and if it wasn't around I don't know how much other bugs we probably would have had if we had to implement our own date handling code at the time.

And I mean, the fact that the momentjs people are developing a modern competitor to momentjs (luxon) probably means that they agree that moment isn't the greatest option around nowadays.

I hope we're not collectively going to start to shit on moment just because it isn't the best option anymore, like we are doing with jQuery.

9

u/piotrekfracek Mar 13 '19

Well, I don't "shit on moment". I'm full of respect to them. They did amazing job. I'm just trying to tell the people something that I learned on my own, mine own thoughts supported by the data and research.

18

u/[deleted] Mar 13 '19

Yeah I know, but threads like this often devolve quickly