Peter Bhat Harkins on Nostr: A small data modeling tip: if you have a state machine with a state that's reachable ...
A small data modeling tip: if you have a state machine with a state that's reachable from every other (eg "order cancelled", "staff override", "delayed"), you should probably have two state machines.
Published at
2025-10-20 16:36:14 UTCEvent JSON
{
"id": "1546329bb484e61a3c111bc7368ce156c625a19b15de53d0106a28379f8e7639",
"pubkey": "54c5cf3f3f91ed490315d610d6941e036af30ac450d8b723fbd40d1b37d8e1d9",
"created_at": 1760978174,
"kind": 1,
"tags": [
[
"proxy",
"https://ruby.social/users/pushcx/statuses/115407465665363237",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub/"
]
],
"content": "A small data modeling tip: if you have a state machine with a state that's reachable from every other (eg \"order cancelled\", \"staff override\", \"delayed\"), you should probably have two state machines.",
"sig": "45bf0380b642fb76671a73ce2f62ebc42af1f6314463477d71dab1cb20e92e4df4982e59208052ebf25ce1b73c4f385d14bc89f6c75f6c970586576875b8e288"
}