|
Hello all,
I have some thoughts on binding that I hope you will be able to help with.
If a widely used file gets modified, it means probably recompiling everthing on the system, as all our modules are bound to programs by copy. This is such a pain, especially on development machines.
Management now wants a separate i/o module for a file. I used an article form iSeries News by Scott on MVC to come up with a proposition. I no longer have the article so if anyone tell me which issue that was, I'd be grateful.
Scott used getters, I believe, for each field of the file. Management doesn't like the look of all those getters, though. Now, if in place of the getters, a program could call a procedure in the i/o module that simply returned the file record in a DS....
<crunching noise as brains engages first gear>
1. Situation today : any file change means recompile all programs because of level, file is referenced in almost all programs.
2. Put the i/o module in a service program. Am I right in saying that now, DSPPGMREF will no longer find the file?
2a. If the procedure in the i/o module returned the file record in a DS, all callers will still need to be recompiled to change the DS in the caller?
2b. If a getter is used for each field instead, there would be no reason to recompile the callers that did not use the field that changed in the file?
Thanks
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.