-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
Rename minPosts and maxPosts in min/max section #22
Comments
Agree, personally I would also like minimum/maximum more in order to keep consistency with the "Avoid contractions" rule stated earlier. |
min/max as mentioned previously, and "prev" is also a contraction. |
This is an interesting point. While avoiding contractions is a great default rule, I find certain terms to be rather natural when contracted. This is very likely to be a personal familiarity and not objectivism speaking. The issue I see with The "avoid contractions" rule is here to apply to cases like Perhaps, we can mention in the contractions section that there are certain naturally contracted terms like So, what do you think about mentioning "natural contractions"? |
@kettanaito Thanks for the update. I agree that it's a good default rule and in my opinion and as described below one people should always stick to. In practice, it's largely about finding a sweet spot between contradicting rules. In my experience, there is a natural tendency towards "keep it short" and to use abbreviations on repeated use and familiarity. It's easy to forget that many users might be unaware of what the abbreviation means and will have trouble finding out. Making variables longer on the other hand might lead to a slight decrease in performance but unlike abbreviations no real issues. A good example are Jest matchers or the vitest API which contain very few abbreviations and some very long matchers like toBeGreaterThanOrEqual which is often abbreviated as just gte. Noted exceptions are toBeNaN and vi.fn, the first based on an existing abbreviation of the language and the latter probably to avoid use of a reserved word. As far as Language itself is constantly evolving and unnecessarily long words will disappear or be replaced naturally. Even though it might seem so, I don't think there is something as natural contractions. |
I think this parameters name violate "Avoid context duplication".
The text was updated successfully, but these errors were encountered: