2 ms·
When you advise against naming a variable a subset of another variable, are you talking about confusing names, or practices like breaking off a chunk of array t
by 1123581321 14y ago
When you advise against naming a variable a subset of another variable, are you talking about confusing names, or practices like breaking off a chunk of array to process instead of finding a smarter way to step through it like mapping or in-place logic?
- edw519 14y agoNo, just variable naming. As we speak, I'm maintaining some old code with the following variables names: - CommandRec - Command - Comm - Com along with the fact that some of these are reused for different purposes and all are global. I'm having a hell of a time finding all instances to rename them properly. I understand that some programmer interfaces are better than others hanlding this, but that belies my main point: "Just name shit what it really is."