3 ms·
Your question may infer more than you may have meant. Yes, I occasionally spend an unreasonable amount of time deciding how to name a variable. But what is "u
by edw519 17y ago
Your question may infer more than you may have meant.
Yes, I occasionally spend an unreasonable amount of time deciding how to name a variable.
But what is "unreasonable". If 30 minutes of agonizing over a name (and a standard) saves me 6 hours of debugging next month, was it really unreasonable?
- huhtenberg 17y ago> Your question may infer more than you may have meant. Of course, it does. It is a simpler version of "Do you care enough to write elegant code ?".
- edw519 17y agoElegance was the last thing on my mind. I was referring to maintainability.
- huhtenberg 17y agoElegance of the code typically implies its maintainability. Not every maintainable code is elegant though :)
- icey 17y agoAt a certain point, if it's that hard for me to reason about naming something, I like to step back and make sure I'm thinking about the problem at hand the right way. Of course, I don't work on very hard problems, so I'm sure that's different for everyone.