3 ms·
> It was also getting harder and harder to debug as JavaScript has no timeout functionality I would have had to wrap that request in another promise. I'm prett
by codelikeawolf 2y ago
> It was also getting harder and harder to debug as JavaScript has no timeout functionality I would have had to wrap that request in another promise.
I'm pretty sure you could use an AbortController to address this? But it's one of those things you have to know about. I completely understand the author's frustration with CORS, but I don't think JS is to blame here. I have felt a similar level of frustration whenever I try to use a language other than JS to work with JSON. Does that mean the language sucks? I would say no. I don't think this made a compelling case for avoiding JS, but I would never want to deny someone the catharsis from venting about technology.