3 ms·
A short variable name is not ambiguous when the code is based on some math or physics that has a more or less standardized notation. In this case, what's needed
by john_b 14y ago
A short variable name is not ambiguous when the code is based on some math or physics that has a more or less standardized notation. In this case, what's needed is to connect the variable names to the mathematics, as Rex Kerr pointed out to the OP:
"Once you understand the math, the length of the variable names is irrelevant. Do others a favor and leave a citation (in a comment) to some relevant description of the math, though, if you had to learn it!"
- btilly 14y agoA short variable name is not ambiguous when the code is based on some math or physics that has a more or less standardized notation. The problem is that the same notation is often used in different parts of math in different ways. You sometimes need to clarify. (Except in the case of differential geometry - there the notation is so horrible that you should find a different job! I only partly kid...) Conversely even if you aren't using a standard math notation, meaningless names and a simple labeled diagram can often make something unambiguous in a way that no amount of verbiage in variable names can hope to do.