|
JT, in part the discussions bounce back and forth between "simple" and "complex", and the examples seldom cover both. Originally, the question was "how to begin", then quickly became "why even try"..... I never saw "module should have one procedure" as a goal. That's but one possible way of approaching this. I myself advocate grouping of similar procedures into a single source member / module, which would then usually become its own service program. I don't like module objects lying around, so I prefer the CRTBND* commands and binding directories to help the compiler find my procedures. Like everything else we do, we must learn and understand the implications of our design choices. It is easy to get into trouble when we use technology we don't understand. Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-898-7863 or ext. 1863 -----Original Message----- From: jt@xxxxxx [mailto:jt@xxxxxx] Sent: Friday, October 24, 2003 11:30 AM To: RPG programming on the AS400 / iSeries Subject: RE: Benefits of Sub-procedures Bob, I agree to an extent. I don't like the colon, nor free-form. But the bright people got it wrong on how to deal with adding one to a transaction number, afaik. I look at the views, by many VERY bright people, that a module should have one procedure, and I sure think/believe they've got that wrong... (Don't agree that's the stupidest thing I've ever seen, when compared to interfacing with an API using XML, for example!) There is a fair bit of confusion about "best" practices in procedures, from THE most experienced and (imo) brightest people. How is that?? And I can assure you that EVERY programmer on the face of the earth can and has gotten into some trouble when they "assume things work they way they think they should <when> that is often <not> the case", and that's not language-dependent. I would be of the opinion, that as RPG gets (imho) less-intuitive, that's gonna happen more than less. <OT PS: Never been a dairy farmer, but worked on a farm one summer... Yep...> | -----Original Message----- | From: rpg400-l-bounces+jt=ee.net@xxxxxxxxxxxx | [mailto:rpg400-l-bounces+jt=ee.net@xxxxxxxxxxxx]On Behalf Of Bob cozzi | Sent: Friday, October 24, 2003 11:59 AM | To: 'RPG programming on the AS400 / iSeries' | Subject: RE: Benefits of Sub-procedures | | | Who are these bright people who are getting it wrong? | Granted I been known to dislike some of the implementations in | RPG IV (like | the colon, some of the free format stuff, etc.) but I don't think bright | people are getting the new stuff wrong, I think they are just not be | thorough. They assume things work they way they think they | should, and that | is often no longer the case with RPGIV... and that's too bad. _______________________________________________ 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.