Greg Egan on Nostr: I’m a novice in Python compared to the languages I’ve used for decades, so it ...
I’m a novice in Python compared to the languages I’ve used for decades, so it took me a while to jam the message into my brain: if you want your code to give identical results each time it’s run, never iterate over the members of a set without turning it into a sorted list first.
Published at
2024-09-27 08:20:11Event JSON
{
"id": "deaaf7469c8a7c656745710d7ccd0342416749c47dd9d9a665039856da369c43",
"pubkey": "0037e9f1404aa866c76ed1358206ac5387eb2d3589361a3802af0f260bda26d7",
"created_at": 1727425211,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/gregeganSF/statuses/113208538666431025",
"activitypub"
]
],
"content": "I’m a novice in Python compared to the languages I’ve used for decades, so it took me a while to jam the message into my brain: if you want your code to give identical results each time it’s run, never iterate over the members of a set without turning it into a sorted list first.",
"sig": "637ac8969750ccdec48660a07fe7938790e37567c1f03905c7a99becae8d91ed5163fb6d94ed5e5762f9da273d2ebd4188eded961241e838a46cd03dee8bee43"
}