News for hackers. Stuff that matters.
Re:The Case for React-Like Web Components by dmitriid on Thursday February 01, 2018 @10:26AM (#16282459)
> now much of jQuery's goodness is native

Frankly, not that much. Most of the APIs are still the same imperative you-can-only-do-one-thing-at-a-time hell, often with very limited capabilities compared to jQuery.

And yes, whoever made the decision to return NodeLists instead of arrays everywhere should at least re-evaluate whether they should really be doing programming.

Re:The Case for React-Like Web Components by DougWebb on Thursday February 01, 2018 @12:01PM (#16283453)
I agree, and I prefer jQuery over native. It's still better, and does more. My point was that people say we don't need it anymore because the features it introduced are native now, and I think that's going to be said about React and Web Components too at some point. The same counter-argumemt will also be said: people will defend continued use of React because it will still be better, and will still do more. Just like jQuery.
Re:The Case for React-Like Web Components by sametmax on Thursday February 01, 2018 @10:32AM (#16282517)
Yep. Fetch is very low level. Chaining is a godsend. Adding elements is way shorter with jquery. All the vanilla js project i've seen end up writting a poormy tested a'd documeted half backed jquery little brother. It's not a win.
Re:The Case for React-Like Web Components by sebringj on Thursday February 01, 2018 @11:09AM (#16282910)
I like fetch except its missing xhr basic stuff like cancel and abort, etc. I don't know who makes these standards.
Re:The Case for React-Like Web Components by realityking on Thursday February 01, 2018 @11:35AM (#16283192)
Abort/cancel has recently been added to the spec as AbortSigal (https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). Currently only supported in Firefox 57 and Edge 16.

The major thing still missing is upload/download progress.

Re:The Case for React-Like Web Components by sebringj on Sunday February 04, 2018 @02:40PM (#16304450)
In remembering this issue I had, I made a frankenstein promise return object mimicking fetch's interface called "retch" but didn't publish it. It allowed progress and cancelling. It made me think would be nice to have a promise interface standard class you could inherit from where you could add sugar to it so the chain would remain consistent with your additional functionality. Anyhoo.
Re:The Case for React-Like Web Components by vinceguidry on Thursday February 01, 2018 @10:49AM (#16282680)
I have a open job application with a company whose code challenge has me using vanilla Javascript. I'm not enthused about finishing it.