benc on Nostr: The real life scenario that inspired this quest dealt with life cycle. The value ...
The real life scenario that inspired this quest dealt with life cycle. The value returned was supposed to be used to allow a caller to manage the result.
We found instances where consumers where simply ignoring the result leaving things in a bad state.
The handler forces the consume to provide _something_ to manage the result. I think this fits the Tell Don’t Ask idea.
Published at
2023-05-24 13:44:34Event JSON
{
"id": "fe345cc42c4d861aba32eca6e6ceaa2402e1f142944f92dfba646b778c488de8",
"pubkey": "2c405fa031a9f4770a4aeec06b4959f92969d4560525e684bb596b57aa018370",
"created_at": 1684935874,
"kind": 1,
"tags": [
[
"e",
"a6c7bc078a43171033f4b0557fb6ccb4706740dcb2c1e0af80f13a4f1740173a",
""
],
[
"e",
"000be7a8a25e56ae0b3829f799b3f9191109a2254629b285eb4b68441ceed238"
],
[
"p",
"2ef93f01cd2493e04235a6b87b10d3c4a74e2a7eb7c3caf168268f6af73314b5"
],
[
"p",
"2ef93f01cd2493e04235a6b87b10d3c4a74e2a7eb7c3caf168268f6af73314b5"
]
],
"content": "The real life scenario that inspired this quest dealt with life cycle. The value returned was supposed to be used to allow a caller to manage the result. \n\nWe found instances where consumers where simply ignoring the result leaving things in a bad state. \n\nThe handler forces the consume to provide _something_ to manage the result. I think this fits the Tell Don’t Ask idea.",
"sig": "00e664b0c3064bd1bbb8fbf8de6371e5bcbcbb77f81bcbb3cf6759bd8dbe2509f16615fed795fcdd179835786ea9329decf44c15c879742f8a9f64c3a33a0bab"
}