Hacker News new | ask | show | jobs
by erhaetherth 865 days ago
If you don't want to use a big framework, then you needn't use any library at all. Nearly everything in jQuery is 1 line of modern JS, no?
4 comments

> Nearly everything in jQuery is 1 line of modern JS, no?

Since JavaScript never actually requires line breaks, yes.

Otherwise, absolutely not. Modern web APIs remain highly statements-based, with little affordance for pipelining / cascading.

One line of jQuery can replace many lines of vanilla js.
Nearly everything in jQuery is more concise, consistent and composable compared to modern JS APIs. As this site clearly shows: https://youmightnotneedjquery.com/
Yes, there isn't much reason to use jQuery these days other than keeping with the idioms of a legacy system.