benc on Nostr: I keep seeing people write software where they pass state everywhere so everything ...
I keep seeing people write software where they pass state everywhere so everything can compute a value from it.
When delegation or passing expressions is suggest it is seen as “too complicated.” But we end up with objects/structs that have lots of state and methods because that is the only thing that gets passed around.
Anyone else been in this #software spot?
Published at
2023-05-09 15:33:19Event JSON
{
"id": "95a7e02dc508f1fecd5e4e0b63b365a38d9374ec3004815a52133ebe4ff2d8e2",
"pubkey": "2c405fa031a9f4770a4aeec06b4959f92969d4560525e684bb596b57aa018370",
"created_at": 1683646399,
"kind": 1,
"tags": [
[
"t",
"software"
]
],
"content": "I keep seeing people write software where they pass state everywhere so everything can compute a value from it. \n\nWhen delegation or passing expressions is suggest it is seen as “too complicated.” But we end up with objects/structs that have lots of state and methods because that is the only thing that gets passed around.\n\nAnyone else been in this #software spot?",
"sig": "38789e823e236e8cc21fa7c94605b739c33e366eeea8b71930313695331c2042c2f2da43502c6d0c7f2cc733c6aab5410a15c37b58dfed59b9d2b4910fc3386d"
}