3 ms·
I've always found this website absurd since almost every example is harder to read and remember in native JS than in jQuery. It makes an extremely good case fo
by iLoveOncall 2y ago
I've always found this website absurd since almost every example is harder to read and remember in native JS than in jQuery.
It makes an extremely good case for jQuery IMO.
- forkerenok 2y agoThey don't claim it's clearer than jQuery. The pitch, as I understand it: if you only need a few of those operations, it may be better to forego adding jQuery dependency.
- edflsafoiewq 2y agoThat's not really the point. Of course they're smaller in JQuery, the whole idea is to provide equivalents for things that are easy one-liners in JQuery.
- happytoexplain 2y agoIt specifically calls out the use case of writing a library, where reducing dependencies is a much higher priority. It demonstrates how easy it is to replace usage of many functions. It never implies that the native equivalents are shorter.
- EasyMark 2y agoI don’t recall them implying it was more concise just “good enough, and 1 less dependency”