× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe,

I re-reading my answer I see that the sentences can be misread in that
sense that one could read that I am an avid fan of OO-languages at the
cost of 'ye olde programming styles'. This is not the case, I am really
in your corner here, one should use a screwdriver to hammer in a nail
nor should a hammer be used to drive a screw into wood. The right tools
for the right job and a solid 'business case' should be made concerning
the choice of programming language(s) is made.

I know that RPG can be used to make reusable code, better still: I think
that should be strived for as much as possible -within reason-. Both OO
and procedural concepts have their places and advantages.

Cor

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Joe Pluta
Sent: vrijdag 20 juni 2008 15:04
To: RPG programming on the AS400 / iSeries
Subject: Re: Classes/Objects compared to SRVPGMs

Takken, Cor wrote:
What I do want to point out - and yes, I will keep on hammering
about
that ;) - is that 'old fashioned' programming styles (what we are
used
to and love in RPG, Cobol, C and what have you in that area) can
never
be compared in functionality and use to OO programming styles with
the
whole concept of inheritance and reuse through classes/objects and
what
have you which is used in Smalltalk, Java, C++ and the likes.

I'm not going to get too far down this particular alley, because it's
a
blind one, but the idea that OO programming is inherently better than
procedural is a topic that's been beaten to death here, Cor. The
suitability of a giving programming technique for a given purpose
depends a lot upon the programmer, but the idea that RPG can't provide
code reuse is simply untrue.

We can argue all day about whether inheritance is actually a benefit -
the OO experts seems to be leaning more towards composition rather
than
inheritance as it becomes clear that complex object hierarchies lead
to
brittle software - but at the end of the day, the trick is
productivity
and procedural programming still has its place.

To insist otherwise is to have never written business logic with a
good
procedural programmer.

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



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.