-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naming things: expand language around the use of common words, brevity, wide consultation, and future-proofing. #163
Conversation
Okay, this has been rebased onto @atanassov's squashed merge. Please review. |
index.bs
Outdated
Keep in mind that most web developers are not native English speakers. | ||
Whenever possible, names should be chosen that use common vocabulary | ||
non-native English speakers are likely to understand when first encountering the name. | ||
Always value readability over brevity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I entirely agree with this. E.g., how would this judge fetch()
or response.json()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applying any or all of these rules retrospectively may not necessary work. In your example I'd argue that fetch()
is a common vocabulary for getting things on one's behalf. On the other hand, json
is a well known reference similar to style
, css
etc. that shouldn't need a long form... if the format isn't known to the user it should be trivial to find of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it might not be clear that it json()
consumes the body of the response though. That's more the thing I was getting it. But also, I think that there's value in brevity as it's never possible to encapsulate the full complexity in the name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried to capture this in d59b3a7, @atanassov & @annevk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me.
(My one comment here is a reply to @annevk's comment, not a comment on the actual diff.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my issues. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in the three new commits all look good to me.
@annevk, could you take another look? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think overall this is good and you should land it.
Having read https://adactio.com/journal/16811 recently I do wonder if at some point we should make it more clear what the tradeoffs are and what to prioritize when making one.
Approved on call 6 May 2020 |
No description provided.