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
Helper vs Util vs Utils #1108
Comments
I like the singular |
tbh I could go any way, just let's be consistent. |
Also if we have verbs we can use -ing (gerund), e.g. |
That makes it hard for some things like |
I've argued for |
Yarn uses American English names, where |
In this case where neither gerund nor plural applies, I suggest falling back to |
Also |
My issue with liach's proposal with -ing and -s is that it makes it very hard to make anything consistent, completely defeating the purpose of the issue. You could make it so count noun utility classes end in We should adopt a standard and stick to it. Looking at the vote, that should be either One argument for There are more |
It seems that the majority of people are for the |
Oh, whoops, I must be blind. Then I propose we rename all classes ending in |
I propose that suffixes are the work of the devil and that we rename all class ending in a
|
|
I thought |
|
Note also that Guava (I think it was Guava?) uses the plural pattern: |
This was my problem with using plurals. Although the names look nice, there are too many exceptions. Either because the word is a mass noun (e.g. "math") and therefore has no plural, or because the plural is already taken by another library (e.g. "map"). It would make it too hard to stay consistent, defeating the point of changing them in the first place. |
Names that would be okay in plural form:
Names that aren't okay because they're mass nouns or not a noun:
Names that aren't okay because they're already taken:
Names that aren't okay for miscellaneous reasons:
In total, 18/34 names would be okay as a plural, meaning we would have to come up with better names for the other 16. So much for consistency. |
I would be okay with using plurals where it does make sense and falling back to a Util suffix where it doesn't make sense. Then at least we have a rule to follow rather than randomly choosing between "Helper" and "Util", which is what we currently do. |
@Earthcomputer |
You may disagree with me on one or two of those points but that's not the point, it doesn't change the overall ratio of 18/34 by a lot. |
I would argue for either |
By the way, some can't be named |
There are 12 classes suffixed with
Helper
:There are 17 classes suffixed with
Util
:There are 5 classes suffixed with
Utils
:We should probably pick a standard and stick to it. I'm personally in favour of Utils, but I would like to hear others' opinion.
The text was updated successfully, but these errors were encountered: