Hacker News new | past | comments | ask | show | jobs | submit login

I am one of those guilty people that still use jQuery since I am used to its syntax compared to web-api. I also think it has a better syntax. While it is true that I can format dates, I would be unsure about compatibility. Moment is nice to use and has a good date arithmetic.

That would all be possible without third party libraries, but often you want to subtract 2 weeks from a date and that is just a pain in the arse with timestamps. You also might want to import/export dates to databases, which can be picky about the format.

I am no web developer, so others might have better opinions. And I think the author is correct that people not used to certain libraries should try the standard ones first.




You can always check https://caniuse.com for browser compatibility, or the MDN article for whatever feature you're interested in.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: