|
Yes, I'm still here in *lurk* mode.
The File Encapsulation experiment still lives at http://www.rpgbeans.com -
at the time I was really trying to push the boundaries of ILE design,
highly
influenced by (as Aaron suggests) what I was learning in OO
languages. And
I did write a couple of articles about it. The justification for it is
the
same in RPG as it is in Java or other OO languages: by moving the IO to a
service program, you have control over how the data is manipulated. In
other words, you are protecting your database from misuse. Triggers could
do the same thing, but they give me the willies. The idea was to have a
single SRVPGM resource that would manage access to a particular file. It
could also provide ready-made procedures, such as string formatting,
calculations, etc. You can use this approach to access your old cryptic
field names with longer more meaningful names.
The truth is that while the concept is sound, it takes an enormous amount
of
discipline in order to secure the desired results. The ease of database
access is sometimes too tempting (I'll just update the file directly this
ONE time...). Also, working with Collections of records would need to be
added: this would best be handled with User Spaces but could also be done
with MODS.
Anyway, the code generation tools are still out there if anyone is
interested. It is free and open source, use it as desired but also at
your
own risk. I am not currently in a position to maintain or upgrade the
code.
--
Joel Cochran
http://www.rpgnext.com
http://www.rpgbeans.com
http://www.developingfor.net
--
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 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.