Brian Swetland on Nostr: Is it just because I'm weird (or old?) that I find callbacks much easier to ...
Is it just because I'm weird (or old?) that I find callbacks much easier to understand and reason about than all the async/await/Promise stuff? (looking at some modern-ish javascript example code)
The stuff that supposedly "simplifies" things just seems to make control flow much less obvious to me.
Published at
2024-05-17 03:56:39Event JSON
{
"id": "ee0eeef7aeb0f52342e179c5dbcb26548dc0d53e4162baea521400fa5ca46791",
"pubkey": "0e0d010099cdae8a709500e46acadaa400a544dcb5a3d12cf7afee8f2ab9f4e2",
"created_at": 1715918199,
"kind": 1,
"tags": [
[
"proxy",
"https://chaos.social/@swetland/112454415133947222",
"web"
],
[
"proxy",
"https://chaos.social/users/swetland/statuses/112454415133947222",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://chaos.social/users/swetland/statuses/112454415133947222",
"pink.momostr"
]
],
"content": "Is it just because I'm weird (or old?) that I find callbacks much easier to understand and reason about than all the async/await/Promise stuff? (looking at some modern-ish javascript example code)\n\nThe stuff that supposedly \"simplifies\" things just seems to make control flow much less obvious to me.",
"sig": "72ae904896e0582c06a40f3cbc0d60adc8aec70e3880f765f57c51c28f050205d0ea1714d88f1d6cce9ae8dc6a15a8ce8f9175769c02e6295b95e8511d17b288"
}