[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: more info - performance with local procedures...
- Subject: Re: more info - performance with local procedures...
- From: Ed Navickas <ed_at_cbsi@HOTMAIL.COM>
- Date: Mon, 30 Aug 1999 17:53:04 EDT
[Global vs Local procedure question]
As I understand it, the distinction between global and
local has to do with the data more than the procedures.
Global procedures tend to use global data, and local
procedures tend to have data passed to them. Global
data can be accessed anywhere in a program, whereas
the access of local data is restricted to certain
routines. It's pretty well explained in the SQR manual
under BEGIN-PROCEDURE.
>From: "Love, Kristin" <klove@MSA.COM>
>Reply-To: SQR-USERS@list.iex.net
>To: Multiple recipients of list SQR-USERS <SQR-USERS@list.iex.net>
>Subject: Re: more info - performance with local procedures...
>Date: Mon, 30 Aug 1999 17:23:27 -0400
>
>OK, I'm lost.
>
>I thought global meant that you would make an SQC file and then reuse it
>later.
>
>I thought local meant your procedure is only in your program.
>
>How does global "negate data abstraction". What is data abstraction?
>
>How could having an SQC already compiled and waiting reduce reusability?
>
>I'm relly not trying to be combative: I'm totally confused now!
>
>:) Kristin
>I'm not a programmer, I just play one on TV
> > -----Original Message-----
> > From: Johnson, Dan [SMTP:Dan_Johnson@WRIGHTEXPRESS.COM]
> > Sent: Monday, August 30, 1999 5:12 PM
> > To: Multiple recipients of list SQR-USERS
> > Subject: Re: more info - performance with local procedures...
> >
> > If I learned one thing in school it's this; GLOBAL IS BAD! I
>don't
> > dispute the possibility that global procedures may be a little bit
>slower
> > and that if you want to save a few seconds you should write global code
> > but
> > in the meantime you are breaking several rules of the structured
> > programming
> > approach. Here's why you don't want to use global procedures:
> > 1. Negates data abstraction
> > 2. Drastically Reduces reusability
> > 3. Makes code less modular because of the above two problems
> > Sure SQR seems to promote the use of global procedures and variables but
> > it
> > is up to you, the anal retentive programmer, to take the path that leads
> > not
> > unto the land of evil globalness but instead take the road less
>traveled,
> > the road to the land of localness where all is pure and good. (boy, did
> > the
> > grammar check hate that sentence)
> >
> >
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com