615 karma · joined July 13, 2019
Promise.resolve()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
You can use this in place of new Promise() (though you rarely need it, as an async function automatically wraps any non-promise return value in a promise.)
----------
Promise.all()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
For making requests in parallel, and returning when all have been successful.
----------
Promise.allSettled()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
For making requests in parallel, and returning when all have completed whether successful or not.
----------
Promise.any()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
For making requests in parallel, and returning the first successful response.
--------
As mentioned in sibling comment, things like fetch and DB calls return promises anyway, so the above are mostly only useful for working with multiple other promises.
[0]: https://9to5google.com/2021/07/20/google-bookmarks-closure-m...
[1]: https://i.redd.it/uvrv7qsqtct81.png
[2]: https://hasura.io/
10 years ago to the month.
So as long as everyone plans a vacation for this time in 2032 it'll be OK.
"the Recommender Systems research community is facing a crisis where a significant number of papers present results that contribute little to collective knowledge […] often because the research lacks the […] evaluation to be properly judged and, hence, to provide meaningful contributions"
https://doi.org/10.1145%2F2532508.2532513
More here... https://en.wikipedia.org/wiki/Recommender_system#Reproducibi...
I read the FAQ several times before posting, and it still didn't answer the security question. Elaborating my concerns...
You suggest developers use this. That means, users will most likely be running dev servers. Dev servers, especially in the NodeJS world offer the ability to connect a debugger.
What happens when someone spams requests to connect a debugger to bore.pub:<PORT>?
Port numbers are limited to 65535. Isn't this un-scalable and a massive security risk?
Even assuming you use the basic cryptographic functions correctly, secure key management and overall security system design are extremely hard to get right, and are generally the domain of specialist security experts.
Errors in security system design and implementation can make the security of the system completely ineffective.
Please learn and experiment, but don't guarantee or imply the security of your work before an individual knowledgeable in this subject matter thoroughly reviews it."
There are many ways to fuck up using this. A couple of concerns about the article - I see no mention of a secure nonce, and no mention of CSP. I'm not a security expert, but I'd be very wary about using the code here.
[1]: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...
The guy that makes it is super helpful on twitter as well.
Ah, I've just realised, the article above pointed to a quote by Simon Brown - he is the Structurizr guy :-)
But it doesn't. !important begets more !importants.
Nice to hear the reasoning behind it, but it's a PITA and should never have been added.
I just read this book. Every page was like, 'wow'.
A couple of questions I had afterwards:
* I saw the DateTime type, but it doesn't seem to have a timezone - how do you deal with timezones?
* How is it to work with async code?
* It's a garbage collected language, what are some techniques to avoid performance pitfalls due to that?
If there's other Julia programmers around, any answers would be much appreciated!
https://www.gulbenkian.co.uk/can-eu-citizens-work-in-the-uk-...