by CyberDildonics · 3y ago · 0 comments
If there are too many nested calls, assign some of the function results to variables first.
Same reason async/await was useful far before there was native browser support - you could immediately use it in your codebase and compile to a legacy browser target.
one(two(three()));
Becomes let a=three();
let b=two(a);
one(b);
Clean and easy, no sugar required. var x = three();
x = two(x);
one(x):
(having the names certainly is nice to have in the debugger, but I'd rather have those intermediate results be an explicit debugger feature than junk taking up mental bandwidth all over the code, at all times)And critically browsers are - for the most part - much more in sync these days across the board.
A lot of web devs got burned through the years of IE6-IE11 and have a natural distaste for browser level changes.
Pipes have been (formally) debated for 5yrs now by the JS people, so they aren't exactly being non-conservative about this one.
Their android system somehow always shipped with broken auto-update of webview or chrome.
Which results in people open your webpage with quite old browser version.
Firefox usage is down to a rounding error, and they happily implement whatever the commercial duo decides the web should have.