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

Home » Public Forums » archive » Re: can i place a job advert
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: can i place a job advert [message #28126] Mon, 26 November 2001 09:13 Go to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
William Thompson wrote:
>
> Paul van Delst <paul.vandelst@noaa.gov> writes:
>
>> "Pavel A. Romashkin" wrote:
>>>
>>> Oh, people have done much worse things here and got away with it. Like
>>> admitting to using common blocks. Go ahead...
>
>> Wot's wrong with common blocks? They seem like quite useful beasties to me.
>
> Paul:
>
> You obviously don't belong to the right religion. ;^)

Well, my comment was meant to try to get those that swear profusely that common blocks are a
Bad Thing to explain why. I place common blocks in the same category as GOTO statements - if
used incorrectly they can lead to unbelievably bad source code that may or may not work.
However, used correctly and judiciously they can greatly simplify the code - for both the
programmer and subsequent user/readers. Having dealt with particularly blech f77 code replete
with common blocks (anonymous, named, different lengths, etc.) I can sympathise with those that
despise common blocks but, to use a building analogy, it's not the hammer's fault when the
framing for the house falls down....

> Seriously, I also use common blocks. I use them because:
>
> 1. They're easy, and get the job done.

I even use them in Object programs!!! :o)


> The main objections to common blocks have been:
>
> 1. Sloppy programming can cause problems, if different programs have different
> versions of the common block. That's pretty easy to get around, though.
> Typically, I use include files, so that all programs have exactly the same
> common blocks.

No argument there, but sloppy programming can cause problems regardless of what construct one
uses to manage variables, memory, etc. Pointers are what come immediately to mind..... with
objects a close second.

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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Capturing screen output
Next Topic: IDL 5.4 on Solaris? Please test

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

Current Time: Wed Oct 08 17:00:05 PDT 2025

Total time taken to generate the page: 0.00478 seconds