2 ms·
"Please use variable names that are more descriptive the larger the scope of their use is." When the scope is limited to a single line lambda, "first letter of
by akavi 10y ago
"Please use variable names that are more descriptive the larger the scope of their use is."
When the scope is limited to a single line lambda, "first letter of the thing it is" is plenty descriptive enough, especially given that it's a strong convention in ruby.
(In an example of the opposite extreme, I'm currently working int codebase where every non-function local/non-instance variable has to use its fully qualified path name. Extremely descriptive; extremely unreadable.)