-
Notifications
You must be signed in to change notification settings - Fork 21
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
get_
function names
#948
Comments
What do people think about this? We should aim to resolve this as soon as possible, as we have to do a CRAN update until October 31. |
In terms of names I tend to agree with @sbfnk I think |
I don't think our group has anything in place that would be deeply affected by a name change here. |
Thanks @elray1. Do you have a preference either way? |
Seb's point seems reasonable to me |
I don't have a strong view either way and happy to drop Also noting that one of the benefits of |
Renaming suggestions (i.e. visualising the proposal a bit)
|
Good point about the naming collisions |
Also what I like about |
which is really a benefit talk about for prefixes more generally (so one option is to pick a different prefix). I find that one a little weak though as what I usually do when exploring a package is do |
With this one I think we should probably call it |
Also noting a point from #949 that without a prefix it may be hard to distinguish these doing functions from metrics (which also don't have a clear prefix). |
One way to get around this would be to make the metrics function operating on matrices/vectors internal (see #949 (comment)). |
I understood Sam's comment as a broader comment on all functions. We have some mixing at the moment as well, not sure how much of an issue this is going to be in reality. But I appreciate it's definitely not zero. |
Ideally we would resolve this asap as about to try and write a workshop for scoringutils and ideally it won't all get cycle broken. I don't have a strong view and happy to go with whatever. I would note though that this is another instance of a late revamp of already discussed choices which does feel inefficient so reflecting on how we can do better in initial dev conversations seems like a good idea. |
inefficient you mean? |
ha yes |
How strongly do you feel, @sbfnk ? If we're all basically indifferent then I'd lean towards just leaving everything as is. If you do feel strongly (and I'm all in favour of strong feelings related to scoringutils!), then I'm happy to make the change tonight |
If I haven't managed to convinced people that this matters then clearly it's just my own pet grievance, and I will cope. |
I think it's more a general But I'm genuinely happy to keep thinking and talking about this. Even at a later point we can always decide to just go through a proper deprecation cycle. |
yes agree |
especially with the mastermind part, I suppose :-D |
Sorry if I missed a previous discussion about this (which I suspect there has been) but I typically think of
get_
functions to provide access to some properties of an object (as is the case forget_forecast_unit()
) but not to perform operations / calculations. With this in mind I would expect e.g.get_coverage()
to be calledcoverage()
get_pit()
to be calledpit()
get_pairwise_comparison()
to be calledpairwise_comparison()
Otherwise should
score()
not be calledget_scores()
etc.?The text was updated successfully, but these errors were encountered: