A Guide to Naming Variables
a-nickels-worth.blogspot.com
A Guide to Naming Variables
1–10 of 175 posts
Re: A Guide to Naming Variables
#2Re: A Guide to Naming Variables
#3Re: A Guide to Naming Variables
#4I have real trouble with single-letter variable names like "c", for any function more than, say, 2-3 lines. I scan the code and it increases my mental load because I have to remind myself what it means.
Obviously a lot of people don't have problems with this, but I do. Anybody else?
Maybe it's because I jump around a lot from function to function?
Re: A Guide to Naming Variables
#5Re: A Guide to Naming Variables
#6Re: A Guide to Naming Variables
#7when it's coding as fast as humanly possible, the last thing I want to do is slow down to think of good var names. I'll often just name something "foo" if I can't think of a good name and come back and rename it later. Sometimes it's a little better than foo but still not perfect but I'll leave that and move on to something else. I really don't like the idea that code must be perfect. Code is never perfect.
Re: A Guide to Naming Variables
#8As a result I mostly ignore blogspot links. But this seems up my alley (http://akkartik.name/post/readable-bad). Anybody else run into these issues? Anybody have suggestions or workarounds? Why do technically savvy folks not notice how crappy blogspot has gotten?
Edit: PSA for blogspot owners https://productforums.google.com/forum/m/#!topic/blogger/8hN...
Re: A Guide to Naming Variables
#9when it's coding as fast as humanly possible, the last thing I want to do is slow down to think of good var names. I'll often just name something "foo" if I can't think of a good name and come back and rename it later. Sometimes it's a little better than foo but still not perfect but I'll leave that and move on to something else. I really don't like the idea that code must be perfect. Code is never perfect.
But what happens if you die and someone else has to pick up where you left off?
Re: A Guide to Naming Variables
#10when it's coding as fast as humanly possible, the last thing I want to do is slow down to think of good var names. I'll often just name something "foo" if I can't think of a good name and come back and rename it later. Sometimes it's a little better than foo but still not perfect but I'll leave that and move on to something else. I really don't like the idea that code must be perfect. Code is never perfect.
But what happens if you die and someone else has to pick up where you left off?