-
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
variable name philosophy #4
Comments
A bit more specific to this issue (an exaple): Say, I compile eCLM only (so
|
I think the "right" answer here depends on which convention we adopt. Perhaps the Google shell styleguide would be a good start. |
Just in short, I will add more information at a later stage. The variable name philosophy is that variables which ends with I admit that the naming scheme might not always be intuitive. I am open for suggestions. |
The suggestion is here, first as a separate feature branch, but it took too long and was afraid of merging conflicts arrising, so I merged it already to my main improvement branch that can be merged (if you have no more issues). |
Instead of checking an intermediate variable and then setting the final variable, it is just as well to directly use the final variable. Resolves: #4
Concerning naming, consistency between README and scripts and updating, is there a philosophy for the shell variables?
Some examples:
control_tsmp2.sh
there is$expid
, gotten from either$EXP_ID
further up (where user can adjust it), but inREADME.md
there is$sim_id
CASE_ID
andcaseid
One sort of principle is visible, of course: user defines XXX_YYY and script picks it then up as xxxyyy, but other things work different again. Also there is
npnode=$npnode_u
and similar, and so on…The actual question is rather: if I find it messy do I not understand properly (then we should talk), or is it how I think it is and should it be like that, or should I try to make it more consistent?
@s-poll, apropos, in the TSMP2 repo (at least that(in retrospect, of very little importance, and I'll only touch it if I must touch the line for another reason as well)stages-2024
branch), in fact, lower-case hostnames are used (so they are not up-cased with^^
). Someone like-minded must've changed it thus. :-)The text was updated successfully, but these errors were encountered: