Terence Eden on Nostr: All other things being equal, which of these coding conventions do you prefer? ...
All other things being equal, which of these coding conventions do you prefer?
`property(object)` or `object.property()` ?
For example, `length($things)` or `$things.length()`
What about if you are manipulating the object? E.g. `upperCase($text)` or `$text.upperCase()`
(Not doing a poll because I'd prefer a discussion.)
Published at
2023-08-09 10:21:27Event JSON
{
"id": "7e07cdbcfa6ace5b27974c2113c14dd729d5c59c563648f7261c829b61e5b4b8",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1691576487,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/Edent/statuses/110859156682715591",
"activitypub"
]
],
"content": "All other things being equal, which of these coding conventions do you prefer?\n\n`property(object)` or `object.property()` ?\n\nFor example, `length($things)` or `$things.length()`\n\nWhat about if you are manipulating the object? E.g. `upperCase($text)` or `$text.upperCase()`\n\n(Not doing a poll because I'd prefer a discussion.)",
"sig": "4efdcf0c48f6bf37e3dbe29ea5976be07d23a4a7e34cc13a2644d0d78ec0c928d98ca6765b2677041ff1b20210c6a9250cb979b33e77abf144f1fc3bb03d0dd7"
}