danwwilson :rstats: :voteyes: on Nostr: I am currently reviewing some code, and am curious how people balance everything ...
I am currently reviewing some code, and am curious how people balance everything becomes a function vs just write code and let it run. I am familiar with the rule of ‘do it 3 times make a function’ but I have also heard the idea of wrap it in a function and give that a meaningful name. I have seen this latter approach taken to extremes on a recent code base which made it harder to navigate. What’s your approach? #RStats
Published at
2024-10-17 00:04:32Event JSON
{
"id": "91d71caa3074e6af473e41d3b7278ea05187fe293801d6754dd6016219a0fd96",
"pubkey": "9b6601a4dc74a0af0c82df100dc70880b7916b2b2b18d3828eb76cb7463ec0de",
"created_at": 1729123472,
"kind": 1,
"tags": [
[
"t",
"rstats"
],
[
"proxy",
"https://rstats.me/users/danwwilson/statuses/113319835902246764",
"activitypub"
]
],
"content": "I am currently reviewing some code, and am curious how people balance everything becomes a function vs just write code and let it run. I am familiar with the rule of ‘do it 3 times make a function’ but I have also heard the idea of wrap it in a function and give that a meaningful name. I have seen this latter approach taken to extremes on a recent code base which made it harder to navigate. What’s your approach? #RStats",
"sig": "6dd79a6d85e7927065afe2680f94ab11f9eb014261fc24be52d223be85a1f1b0f53768087a58b989b8371fc78922dc92ba2ebb922b1d79c43c2efcba9bce9e31"
}