Re: Declaration of variables in IDL [message #26961 is a reply to message #26881] |
Wed, 03 October 2001 12:49  |
Todd Clements
Messages: 23 Registered: January 2001
|
Junior Member |
|
|
I get ahead of myself sometimes on the sarcasm. In my family, we first
assume that what you say is a joke. Then we consider whether or not it
may be true. Sometimes this get me in trouble. ;>
But like I said, using the same variable name many times is great for
job security. Or at least guaranteeing that you'll be bugged for years
to come. Someone wrote a monolithic code a while back which he called
"SDC" standing for "self documenting code". This was because some of his
variables actually had *gasp* more than seven characters. Let's just say
(TM) that for a while after I started working on the code, he was on
speed dial.
Todd
>> It's much
>> better to embrace the weakly typed variables and reuse the same variable
>> several times in each function.
>
> Note to original poster: Apologies for maybe stating the obvious, but Todd
> Clements is joking.
> If you can avoid it, you should not reuse the same variable several times in
> each function - it
> can be a maintenance nightmare depending on the complexity of the
> function/procedure in
> question.
|
|
|