What's the real need to have OPEN's in a sub. Isn't the main purpose of subs
to allow repeated access of the same code. What's wrong with top-down coding
with the OPENs, INCLUDES and other housekeeping in the beginning.

I also think that any programming to accomodate the hardware limitations of
the past should stay in the past. Dartmouth and other interpeted Basic
languages were proven that code nearer to the top executed faster. So be it.
I can't imagine that a sub anywhere in a program is any 'closer' to the top
runs noticably faster. You would be hard pressed in a 60-100 user
environment with everyone running their variety of apps to notice a provable
difference in your program. Academic at best.

I just inherited a job costing app that is a bear to debug. It 'reads' well
with its graceful GOSUBs for everything but it gets out of hand. BTW, I wish
the data/basic debugger would not 'step' through called subs when stepping
through the main program.

Just curious.

----- Original Message -----
From: "Gordon J Glorfield" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: <[EMAIL PROTECTED]>; <[email protected]>
Sent: Wednesday, September 28, 2005 1:33 PM
Subject: RE: [U2] Good Programming Practice Question.........


> I prefer alphanumeric labels for subroutines.  The label should give some
> clue as to the function of the subroutine.  The subroutines should be in
> frequency of use order with the most commonly used closer to the top of
> the program.  Subroutines that are used once in a program (file opens,
> variable initialization, etc...) are located near the bottom.  This method
> is suppose to improve the efficiency of the program and may not be valid
> anymore.  In the Sequoia version of Pick O/A it did matter.  The run-time
> engine would start at the top of the program to search for a subroutine.
> Therefore a subroutine that was accessed over and over again would be
> found quicker each time if it was closer to the top.  Some programmers
> even took this to an extreme by making the first line of a program read
> "GOTO MAIN.LINE".  The next line would be the label for the most commonly
> accessed subroutine.
>
>
> Gordon J. Glorfield
> Sr. Applications Developer
> MAMSI (A UnitedHealth Company)
> 301-360-8839
>
> [EMAIL PROTECTED] wrote on 09/27/2005 04:35:12 PM:
>
> > Kevin:
>
> > Not if you alphabetize the labels; then it works just like numeric.  :-)
>
> > Bill
>
> [SNIP]
>
>
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
> that any dissemination, distribution or copying of this e-mail is
> prohibited. If you have received this e-mail in error, please notify the
> sender by replying to this message and delete this e-mail immediately.
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to