4 ms·
Chain a few more commands onto that example and then we can talk about how readable the pure JS version is.
by jarcoal 14y ago
Chain a few more commands onto that example and then we can talk about how readable the pure JS version is.
- beatgammit 14y agoI'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. [1] - https://github.com/ded/reqwest https://github.com/ded/reqwest