3 ms·
Another possible solution is to put the full variable name in a comment next to the first declaration, in languages with variable declarations. Like this: do
by roryokane 15y ago
Another possible solution is to put the full variable name in a comment next to the first declaration, in languages with variable declarations. Like this:
double anospic; // average numbers picked
Just raising it as an option; I haven’t actually used that style much myself. With the code I’ve been writing recently I haven’t had any problems so far giving variables names as long as I’d like.
- jmonegro 15y agoThat's a good idea for languages that use that convention (I'd use it with objective-c if xcode didn't make using long variables so easy), but I mostly work with ruby.
- pi18n 15y agoanospic ||= ... # average numbers picked The Ruby convention would be to write out the variable with underscores anyway, just sayin'.