× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Firstly, I name my subprocedures alpgabetgically, as in ...

a1_...
b1_...
etc.

Secondly, the higher level subroutines come earlier in the sequence. The number , e.g. a1, a2, allow for inserts.

During the final testing, I optimize the run time speed by using program data gathering.


Regards.,
John McKay
www.mckaysoftware.ie
www.rpglanguage.com

----- Original Message ----- From: "Adam Glauser" <adamglauser@xxxxxxxxxxxx>
Newsgroups: midrange.rpg400-l
To: <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, November 13, 2008 2:29 PM
Subject: Re: How do you sequence/order your subroutines/subprocedures?


Kurt Anderson wrote:
I've always done it (subprocedures, I don't do much with subroutines)
alphabetically - mainly because the outline will not alphabetize them -
and they're a pain to find otherwise. I believe the outline does
alphabetize subroutines (for whatever reason).

To which outline are you referring? The outline view of WDSC, or
something else? I'm a bit surprised by your comment about
non-alphabetized routines being difficult to find. Isn't that what find
functions are for? SEU, green screen debugger, LPEX and WDSC debugger
all have 'find this string in the source' tools.

I work similarly to Rory, in that I tend to put internal-only
subprocedures at the bottom of a source member, and for the same reason.
Within either group (exported or non-exported) I generally add new
subprocedures at the end of the group, unless they are closely related
to other existing subprocedures.

For example, if I had these subprocedures:

splitStringOnDelimiter()
rightJustifyString()
convertStringEncoding()

and I wanted to add a procedure to centre a string in a field, I'd add
it between rightJustifyString() and convertStringEncoding().

Hope this helps,
Adam
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.