?

Log in

No account? Create an account
It's weird, but I find that often the hardest part of programming is… - The Mad Schemes of Dr. Tectonic [entries|archive|friends|userinfo]
Beemer

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[May. 8th, 2006|12:11 pm]
Beemer
It's weird, but I find that often the hardest part of programming is not figuring out what to do, but what to call it, such that everything has a meaningful and unambiguous name...
LinkReply

Comments:
[User Picture]From: jofish22
2006-05-08 11:22 am (UTC)
yeah, and then half the time when you've finished writing the function or using the variable you realize that it does not, in fact, do the thing or represent the thing that you said it did. suddenly one-letter variable names don't seem so bad... (joke. that was a joke. don't beat me.)
(Reply) (Thread)
[User Picture]From: dr_tectonic
2006-05-08 11:37 am (UTC)
Hey, one-letter variable names have their place.

I use them all the time for loop indices and temporary variables of very short scope, where it would be a waste of everyone's time to use a long name...
(Reply) (Parent) (Thread)