Programming Quotes on Nostr: The ideal numbers of arguments for a function is zero (niladic). Next comes one ...
The ideal numbers of arguments for a function is zero (niladic). Next comes one (monadic), followed closely by two (dyadic). Three arguments (triadic) should be avoided where possible. More than three (polyadic) requires very special justification and then shouldn't be used anyway.
— Robert C. Martin
#functions
Published at
2024-04-06 11:59:56Event JSON
{
"id": "a4f5c7c203656a29f468de8192b6c1c1981ceb062123ed486f076d633933dfd7",
"pubkey": "4301c38bf5e67cb1370e91d276a7c2ac84ea5851c84a2008c41bee55923c914b",
"created_at": 1712404796,
"kind": 1,
"tags": [
[
"t",
"functions"
],
[
"proxy",
"https://mastodon.social/users/programming_quotes/statuses/112224160723080082",
"activitypub"
]
],
"content": "The ideal numbers of arguments for a function is zero (niladic). Next comes one (monadic), followed closely by two (dyadic). Three arguments (triadic) should be avoided where possible. More than three (polyadic) requires very special justification and then shouldn't be used anyway.\n\n — Robert C. Martin\n\n#functions",
"sig": "eb3b52dfa204986c739d53a239ad0b88c52d60c790db1f9c37a0feed38a62d72cc9eb7c06e5af6b58cab024ecb53f8af5f6b8cafe14568ca76b90feef5156035"
}