isaiah on Nostr: trying to convince my adult son of the value of shorter functions even when the ...
trying to convince my adult son of the value of shorter functions even when the they’re only called once.
i don’t think i even made a dent. he’s going to have to learn this one the hard way.
what’s your rule of thumb for creating separate functions/methods?
how many nesting loops?
conditionals?
Published at
2024-11-26 00:04:22Event JSON
{
"id": "5ffd2ec3ef845b1596d0b0327cbf2494865f084a786160f5d5d7f018b19c819e",
"pubkey": "94dff87483305ec8db0f1bc6dd4cbcbc13dae921bca016a35518c0dc17e1c493",
"created_at": 1732579462,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/isaiah/statuses/113546327685887473",
"activitypub"
]
],
"content": "trying to convince my adult son of the value of shorter functions even when the they’re only called once.\n\ni don’t think i even made a dent. he’s going to have to learn this one the hard way.\n\nwhat’s your rule of thumb for creating separate functions/methods? \nhow many nesting loops? \nconditionals?",
"sig": "9186896eed80408bb6a8a87dd1ab2112d2ecc47f8b5e93f0d0207c989f0554a43971bb7871ecd7038408bd17f3b4b07734fb9cf5db330f6867cb4d5531222822"
}