3 ms·
If the code is small, than short variables are easier to debug, because they are easier to manipulate, have less visual clutter, and are short scoped enough tha
by gizmo686 14y ago
If the code is small, than short variables are easier to debug, because they are easier to manipulate, have less visual clutter, and are short scoped enough that you do not get a benefit from using a longer name. Not to mention the fact that you do not have the descriptive name obscuring what the code is actually doing.
- gbog 14y ago> descriptive name obscuring what the code is actually doing. Sorry but descriptive names are clarifying what the code is doing, or are not descriptive.
- gizmo686 14y ago>Sorry but descriptive names are clarifying what the code is doing Generally speaking this is true. However, when you are debugging, this no longer is true. When variables say what they are supposed to be, then it is more difficult to see that they are something else.
- qu4z-2 14y agoDescriptive names clarify what the code is supposed to be doing. Sometimes there's a world of difference between that and what it's actually doing.