comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Declaration of variables in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Declaration of variables in IDL [message #26961 is a reply to message #26881] Wed, 03 October 2001 12:49 Go to previous message
Todd Clements is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Is there a line widget
Next Topic: global singleton object ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:40:25 PDT 2025

Total time taken to generate the page: 0.00645 seconds