-
Notifications
You must be signed in to change notification settings - Fork 14
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
aqp 2.0 function/method/argument naming conventions #140
Comments
See this file for some investigations I did into the functions used in aqp. The below groups are general groups -- assigned using a sequence of regular expressions. It isn't perfect, but it is perhaps a starting point.
|
Thanks for putting all of this together.
Since
These are useful guidelines (hey a good use for the wiki) but should not be absolute. We don't have time to play style police. Lets all try and be constructive when making suggestions about others' code. |
Merge branch 'master' into aqpdf # Conflicts: # man/profile_compare-methods.Rd
The laissez-faire approach to the growth of aqp over the last decade has allowed a proliferation of a variety of different naming conventions. I believe this has overall been good for the development of the package -- as the focus has been on delivering tools to the users -- and perhaps not getting too caught up in formalities.
However, I believe all developers, and probably all users, of aqp have to some degree become frustrated with what they may percieve as "inconsistencies."
I recognize inconsistencies but also recognize that actual "standard" up to this point is an illusion -- at least with respect to aqp.
This issue is for discussion of suggestions to improvements to the aqp function/method and argument naming scheme.
I feel like I could suggest as a couple goals to constrain and guide our work. Feel free to add or modify these.
relatively "uniform" syntax that reflects a cohesive, well-thought out package
minimal number of keystrokes, while still providing essential context as to what a function does
function names should be verbs -- they "do" something
arguments that refer to the same data for similar functions should do similar things, be ordered and named the same -- there are a couple really nasty inconsistencies like
p
for profile orp
forpattern
I personally am one of the worst offenders in terms of the variety of functions I have introduced and the variety of naming conventions (I use dots, snake case, camel case, every verb, no verb, etc).
Even though many of my functions have been in place a while, I recognize that people are only just now getting to "know" them -- and now have suggestions. I have always been open to renaming them -- but have generally stated that I would not do so until we decide what exactly our naming "target" is.
So that is what this issue is for.
The text was updated successfully, but these errors were encountered: