Joe Lanman on Nostr: naming things eh? What would you do in this situation: On a web page, I have a macro ...
naming things eh? What would you do in this situation:
On a web page, I have a macro to render a post, and a post data object.
`renderPost(post)`
or
`post(postData)`
or something else? I'm leaning to `renderPost` but then every macro will be called `renderThing` which seems odd
#webdev
Published at
2024-02-02 20:26:49Event JSON
{
"id": "0092959c4cc4c2f3c6ff13d787fc04e84776ea3e03fe401ac4f6380963e6c3a9",
"pubkey": "2075030a4cdec9b9a79552f45c96670658c1f7be5b3fea2ce02afcb7f55b3e9b",
"created_at": 1706905609,
"kind": 1,
"tags": [
[
"t",
"webdev"
],
[
"proxy",
"https://hachyderm.io/users/joelanman/statuses/111863766014372321",
"activitypub"
]
],
"content": "naming things eh? What would you do in this situation:\n\nOn a web page, I have a macro to render a post, and a post data object.\n\n`renderPost(post)`\n\nor\n\n`post(postData)`\n\nor something else? I'm leaning to `renderPost` but then every macro will be called `renderThing` which seems odd\n\n#webdev",
"sig": "df77f68d31d08376e031a31fdaf89210cf1d90a26f7e92f6e152be675f3adda3c6b4daca888b7cc69a2366725a985cb03bd4a59067fbc16407c9ec3ed5ad28f8"
}