Why I'll never abbreviate a variable as long as I live
beehollander.wordpress.com
Why I'll never abbreviate a variable as long as I live
1–10 of 111 posts
Re: Why I'll never abbreviate a variable as long as I live
#2Re: Why I'll never abbreviate a variable as long as I live
#3The problem was not that the variable was abbreviated. The problem was that the abbreviated variable was so similar to another abbreviated variable that was used for a similar purpose.
Re: Why I'll never abbreviate a variable as long as I live
#4The problem was not that the variable was abbreviated. The problem was that the abbreviated variable was so similar to another abbreviated variable that was used for a similar purpose.
Re: Why I'll never abbreviate a variable as long as I live
#5Re: Why I'll never abbreviate a variable as long as I live
#6Re: Why I'll never abbreviate a variable as long as I live
#7I definitely prefer more verbose names to abbreviated ones, but I'm not sure that never abbreviating a variable name is the right way to go either. Surely there's a middle ground between `Ttpfe` and `timeOfTenPercentHeightOnTheFallingEdge`?
Edit: e.g. if all of your variables are "timeOfTenPercentHeight...", cut that part out of the name. Full names can be just as bad as abbreviations - e.g. if they're all "timeOfTenPercentHeight..." then they all start to blend together.
Re: Why I'll never abbreviate a variable as long as I live
#8Re: Why I'll never abbreviate a variable as long as I live
#9The problem was not that the variable was abbreviated. The problem was that the abbreviated variable was so similar to another abbreviated variable that was used for a similar purpose.