Need tip for scripting/coding readability.
Hello fellow coders/scripters. Well I'm not a coder, but I think it applies to it as well.
When naming variables or functions how do you balance between readability of the code/script and how detailed the variable names are?
As well as that in mix with commenting within the code/script and the proper way to do comments?
for example:
# var_name is for blah blah blah blah blah
var_name=value
vs
# this section is for blah and does blah
var_name_that_does_this_for_this_and_this_etc=value
I made some script for yambar status bar and it worked great, but the variables seemed to have long names.
Was thinking that if I don't do it that way it would be a problem for maintaining it later.
There's probably a sweet spot in the middle but I don't know where.
Samples for reference would also be appreciated.