Re:Why It's Time to Sunset jQuery
by jarcoal on Sunday April 14, 2013 @02:20PM
(#5547657)
Chain a few more commands onto that example and then we can talk about how readable the pure JS version is.
[ Parent
| on HN ]
Re:Why It's Time to Sunset jQuery
by beatgammit on Sunday April 14, 2013 @02:48PM
(#5547777)
I've never liked chaining, and I hardly ever find a time when it's needed now:
* animations: CSS3
* templating: I don't do it, I prefer static pages and toggle sections with classes
* element filtering: better selectors (nth-child, nth-of-type, [data-stuff=''], etc)
* form serialization: either use event handlers and build it as you go or just use regular browser form handling
Currently, I use reqwest [1] for my HTTP requests. It's very small and is cross browser. In Dart, I just use the built-in libraries.