I'm with Vern and John.
I think efficiency is paramount; with the qualification
that I mean programmer efficiency in writing code that
is easy to understand, maintain and re-use.
If code can be made to save significant user time
and/or server resources, then I try to do that,
without sacrificing "efficiency".
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Friday, March 23, 2012 10:58 PM
To: Midrange Systems Technical Discussion
Subject: Re: Documentation about QC2LE
On Fri, Mar 23, 2012 at 9:20 AM, Vinay Gavankar <vinaygav@xxxxxxxxx> wrote:
I "assumed" that these functions were more efficient than regular RPG
commands. If that is not the case, I would rather use RPG or SQL, if
that is more efficient.
I'm with Vern here. Or actually, with whoever said not to optimize.
I think it is always worth striving for better readability and better maintainability. If there are algorithm-level improvements to be made, make those. Other than that, leave the optimization to the compiler or query engine. Especially if you don't notice that something is too slow. I haven't really tested RPG code next to C code to see which is faster, but from the seat of my pants, RPG programs feel pretty fast. (And I don't even use compiler
If some piece of business logic can be expressed naturally and readably in RPG, then that's a perfectly good (and very possibly best) way to express it, in my opinion.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l