Tom Forsyth on Nostr: npub1qhez3…h5p47 The real problem is that in Python it's very easy to write things ...
npub1qhez3j3ey6etw66ad9nhejza6dwpxxm4jtpemmx7676ycdng5ers7h5p47 (npub1qhe…5p47) The real problem is that in Python it's very easy to write things like generators and fiendish lambdas and coroutines and all that "cool" stuff, and it encourages it.
The problem is whatever your language, those things should only be used carefully, because they're debugging hell. And Python (a) makes then look super easy and (b) is harder to debug (not types = more uncertainty when things go wrong) and that's a Fun(TM) combo.
So it's not Python's fault it's easy to write scary code.
Published at
2024-01-24 22:14:26Event JSON
{
"id": "76b3126fc608bd9c7696e61cb3fbd95bdd7dc2ce84023abef6d823d3ce4e27ca",
"pubkey": "59c5c61181eb766e339fd4da8594510cc8ee73ae967fe4298fafc81c718619d4",
"created_at": 1706134466,
"kind": 1,
"tags": [
[
"p",
"05f228ca3926b2b76b5d69677cc85dd35c131b7592c39decded7b44c3668a647",
"wss://relay.mostr.pub"
],
[
"p",
"a4fe2dc756b295f24778f2e15ea2654bd86c1d9c11c8a6d5dd5ffb330b96f147",
"wss://relay.mostr.pub"
],
[
"e",
"10040decb3f8d4e6fecfbf0e46fbc5a8151c341352735229341a37e55e00d010",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.gamedev.place/users/TomF/statuses/111813228367041519",
"activitypub"
]
],
"content": "nostr:npub1qhez3j3ey6etw66ad9nhejza6dwpxxm4jtpemmx7676ycdng5ers7h5p47 The real problem is that in Python it's very easy to write things like generators and fiendish lambdas and coroutines and all that \"cool\" stuff, and it encourages it.\n\nThe problem is whatever your language, those things should only be used carefully, because they're debugging hell. And Python (a) makes then look super easy and (b) is harder to debug (not types = more uncertainty when things go wrong) and that's a Fun(TM) combo.\n\nSo it's not Python's fault it's easy to write scary code.",
"sig": "0942f09e81285a92955ce6d196a715f979e6bab4635596499bb5e0bed83e4ad7f52e297eb08907f68093748f8f2d2462f863a22dab0c50dab1ba9af0823c1085"
}