What is Nostr?
yes /
npub1l2m…zq4j
2024-02-21 11:36:15

yes on Nostr: its ridiculous how much overly complex #apis js has, and why do these apis use weird ...

its ridiculous how much overly complex #apis js has, and why do these apis use weird callback structures rather than #await #async?

like why the fuck do i need to write:

ws.onopen = function(){
ws.send()
}

ws.onmessage = function(){}

instead of:

await ws.open()
const response = await ws.send()

#mozilla #chrome #google #devs #w3c
can you write proper apis, thanks
Author Public Key
npub1l2muchkyylvc5yruha0vydxen3y7ckzu2ttgrfqf67s4qxudvqlq8tzq4j