wraptile on Nostr: npub1n8jea…50xek there are two different async ideologies: promise callbacks and ...
npub1n8jeap4h9qtf20039ah09evr45ykgsk3m6ckc0eqjyqpls49yvwsm50xek (npub1n8j…0xek) there are two different async ideologies: promise callbacks and awaits.
Sometimes callbacks make sense for non-critical background activities (like analytics) with long IO blocks but generally we all like async/await more because it's easier to debug, maintain and manage.
Though I've been feeling like callbacks are getting a bit of a bad rap lately when there are still legit uses for them.
Published at
2024-02-09 08:56:37Event JSON
{
"id": "3d6119830289e8736ba5f0c5ca6f681a5363f4a82a472a31859e5c6174bdb533",
"pubkey": "344e5688f8a1aa81469ea7a8a7b7e32b7741844202f744e0e16640b1074ec554",
"created_at": 1707468997,
"kind": 1,
"tags": [
[
"p",
"99e59e86b72816953df12f6ef2e583ad096442d1deb16c3f2091001fc2a5231d",
"wss://relay.mostr.pub"
],
[
"p",
"5f907109b1c9fc681cd7f81db43ca1cc9c57530e2dc5c3e6674aed30f907e9e3",
"wss://relay.mostr.pub"
],
[
"e",
"36a86864283e8d0b241c0fc79f83cae0d0216376694565ffdbe0a3cea4734de2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/wraptile/statuses/111900688193802548",
"activitypub"
]
],
"content": "nostr:npub1n8jeap4h9qtf20039ah09evr45ykgsk3m6ckc0eqjyqpls49yvwsm50xek there are two different async ideologies: promise callbacks and awaits.\n\nSometimes callbacks make sense for non-critical background activities (like analytics) with long IO blocks but generally we all like async/await more because it's easier to debug, maintain and manage.\n\nThough I've been feeling like callbacks are getting a bit of a bad rap lately when there are still legit uses for them.",
"sig": "40039628be43c03775ca1067be9985233a67cf195d66d063d324cfa23660d99a64d43bdd329accdde659b99d67ecd6e6f587374a21f1cd6d224f5b1c5db7c72b"
}