-
Notifications
You must be signed in to change notification settings - Fork 0
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
Consider better names for a few commands #36
Comments
I fully agree with I both see your points about Would splitting up the words highlight the difference a little bit more?
|
Yes, I think that does the trick--at, least for my eyes. For renaming functions, would we need to do anything more than find-replace-all for the whole project (assuming that operation also renames files)? Here's the scope. I may have missed something.
|
I have been thinking on how adodown could do this. But I have only come with how adodown reliably updates filenames and pkg-content. Not as obvious how to programmatically update where that command is used in other ado-files or how to update it in the test-files (especially if used from other commands test files) I think in the meanwhile, what you are suggesting is the best approach. Search the whole clone and replace them one by one. Should not be prohibitively labor intensive. So this in the |
I think there's probably no easy way to do that, absent some find-replace that traverses all files in the project (e.g., ingest each file, find-replace old name with new, rewrite file). The reasonable actions seem to be:
|
Names that don't quite communicate intent/use
There are a few commands whose names don't come naturally.
The vars and vals refer to variable and value labels, respectively, but something in the name seems to suggest that the'll return variables and values, respectively.
lbl_list_matching_vars
lbl_list_matching_vals
It might be better to have:
lbl_list_matching_varlbls
lbl_list_matching_vallbls
Some assert commands seem one or two words short of adequately descriptive:
lbl_assert_varlbls
might be clearer aslbl_assert_have_varlbls
varlbl
andvallbl
too close?Additionally, I have mixed feelings about commands whose name differs by a single letter, for an abbreviation that may or may not be widely accepted by users.
First, for Stata users, are
varlbl
andvallbl
readibly intelligble terms?Second, are there other ways to represent these entities in writing that are succinct but not subject to errant keystrokes (e.g., if
r
becomesl
, it's a different command; ifvallbl
drops on of the the two firstl
characters, it's no longer a command).The text was updated successfully, but these errors were encountered: