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



-----Original Message-----
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
optimization.)

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.

John
--
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,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.




This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].