Repository navigation
"Grains" Simpler method names - #1779
Conversation
FridaTveit
left a comment
There was a problem hiding this comment.
As briefly discussed on the issue you raised, in my opinion the existing method names are more descriptive than the ones you want to change them to. I see your argument and am happy to discuss it further, as long as you're willing to discuss it in a polite manner where you acknowledge that other people's opinions are valid even if you don't agree with them. Especially as this is to do with naming which is a quite subjective issue 🙂
|
I understand that others opinion are valid. You didn't give me an opinion to work with. My argument is that there is no additional information in the longer method name. "Number" is vaguer than EDIT: actually |
|
I gave you the opinion that the existing names are more descriptive 🙂Or to paraphrase (and to answer your question of "why stop there"), I don't think the names you were suggesting were descriptive enough. And also, descriptive is not the same as verbose. You can have a very long name that's not at all descriptive, and you can have a short name that's very descriptive 🙂 One thing is the context where you're calling the method. In that case, as you've already mentioned, naming the variable anything other than There's also the context where you're looking at the method in the class where it's defined. I think you should be able to tell at a glance what that method does, and just I do agree that |
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great, thanks 🙂 And thanks for listening to my comments and changing your tone 🙂
No problem, sorry for the tone |
Hi,
Following the issue #1778 I thought it'd be better to discuss the issue over some concrete code.
This is just changing the name of the methods to make them simpler.
Thank you for your time.
Reviewer Resources:
Track Policies