Re: Declaration of variables in IDL [message #26875] |
Wed, 03 October 2001 09:30  |
Paul van Delst
Messages: 364 Registered: March 1997
|
Senior Member |
|
|
David Fanning wrote:
>
> Paul van Delst (paul.vandelst@noaa.gov) writes:
>
>> 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.
>
> Todd was talking about job security, so I am sure
> he was not joking. With recent events and today's
> job economy, it is no joking matter. I have renamed
> almost all the variables in my programs "a" to cope.
Sigh - I guess I'd better restore my IDL/Fortran program variable-name randomiser script from
backup tape then. It also has optional arguments to strip all comments and "de-format" any
prettifying structure to the code that may (*gasp*) make it easy to read/understand.
I'll sic that puppy onto my distributed code, encrypt, uuencode, print, then delete the
resulting variable match lookup tables. I think there's enough room in my safe deposit box for
all that printout.....
paulv
--
Paul van Delst Religious and cultural
CIMSS @ NOAA/NCEP purity is a fundamentalist
Ph: (301)763-8000 x7274 fantasy
Fax:(301)763-8545 V.S.Naipaul
|
|
|