This journal made me think of typos in code, and then to reflect on werid variable names I've used.
Some are obvious, like $foo, $bar, $blah, $temp, $tmp.
Some of my favorites:
%HugeAssHash (later renamed to %hah)
&kludge(), &bugfix(), (the list could go on)
Anybody else have some to add to this list?
Updated: Forgot to enable comments, I think that should be a prefernce somewhere to always have it on, unless I am missing it.
Nothing to add (Score:1)
What you do in your own, private programs is, of course, your own look out, but I strongly recommend staying disciplined.
Re:Nothing to add (Score:2)
I never name anything with anything but a meaningful name, anymore. Even a list index. If I can't say what the thing is I'm writing code about, how can I write correct code for it?
That sounds silly, but it's the case. If I spend ten minutes figuring out what to name the list index, I may save thirty minutes later when the code has grown more complex.
Of course, I rarely use an index in Perl; I use foreach. But I apply the same principle everywhere I can.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:Nothing to add (Score:1)
Of course, there is the other end of this spectrum, where you have &getPageAndParseItThenSaveIt(); function names, which do not really lend them selves to saving time. I've never been that verbose, but have seen it in other people's code.
personal programming idioms. (Score:1)