|
Using procedures makes for neater, more readable, code.
Date: Tue, 1 Apr 2008 06:27:53 -0500
From: david@xxxxxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: subroutines are bug factories was: Classic Traps -- I need your input!
Francis Lapeyre wrote:
Subprocedures have their place.
And so do subroutines. I have used both where they make sense. But to
suggest that all RPG programs everywhere have subprocedures instead
of subroutines is arbitrary and capricious thinking.
I'm weighing in on this thread late ... but I'm going to take procedures
side.
Procedures can do everything that subroutines can do, and a whole lot more.
Personally, I haven't written a new subroutine in about 5 years. I
don't plan on starting anytime soon.
Change merely for change's sake is never a good idea.
I don't think anyone has suggested wholesale change of subroutines to
procedures is a good idea, but for new code and on going changes, using
procedures makes for neater, more readable, code.
david
--
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.