Webventures

To boldly go where countless others have gone before.

The Biggest Thing from WWDC 2022

TL;DR: No one is talking about Apple announcing it's _finally_ going to bring Web Push to Safari.

If you ask me, the biggest thing to come out of WWDC 2022 was the announcement of Web Push for Safari. MacOS is going to get it first and iOS will receive it in a later iOS 16.x update, sometime in 2023. iOS. Is. Getting. Web Push. 💃 Apple announ...

Returning a promise in new Promise() vs .then()

TL;DR: Returning a promise in `new Promise()` never resolves, but returning a promise in `.then()` does.

Consider the example below: The constructor of Promise expects a function that only resolves when its resolve() callback is called. Having it both (callbacks and return) could cause issues: To keep the API predictable, it was decided that the function...