× 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.



I know what you mean Jon. Trying to get RPG programmers to break things
down into small pieces is like pulling teeth.

For me, a classic example.

Building a service program that returns multiple rows of data.

Build one big procedure that passes all the parameters and then return an
array of records. No, no, no

Trying to get people to understand you need to break down into small
pieces. One procedure to build data, one procedure that can ask how many
records and another procedure that receives one record.

One procedure that does one thing. Guess I had better get off my soap box.

.

On Wed, Nov 2, 2022 at 10:18 AM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Not really Don.

I just find when you give someone a huge "lump" of code to work with they
tend to mentally lose track of the constraints they _should_ be working
within. I think Niels comment on the topic was spot on.

Remember I'm coming from the perspective of someone who has spent 30+
years trying to educate old-school RPGers that monolithic programs are a
bad idea and that small is beautiful. Making them think in terms of smaller
chunks of code is part of that process.


Jon P

On Nov 1, 2022, at 7:17 PM, Don Brown via RPG400-L <
rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

1) The larger the single module (i.e. source) the greater the temptation
to use globals.

Jon can you elaborate a little on this comment please.

Thanks

Don



--
This email has been scanned for computer viruses. Although MSD has taken
reasonable precautions to ensure no viruses are present in this email, MSD
cannot accept responsibility for any loss or damage arising from the use of
this email or attachments..
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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.