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



Alan;


I have coded C for 30+ years and to me what C needs but does not have is
subroutines. 

Subroutines are great for segmenting logic, like you do with sql, within a
procedure. When logic needs to be segmented for readability,
maintainability, logic flow, and there is no need to export or partition
(recursively call, isolate variables etc...) the logic then why create a
procedure?

Every procedure I create contains at least two subroutines, initialize and
exitProcedure.

Duane Christen     

-----Original Message-----
From: Alan Campin [mailto:Alan.Campin@xxxxxxx]
Sent: Thursday, June 23, 2005 6:45 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Assembly programmers do it a byte at a time


>> You are mixing design principles. ILE and OO are not the same, ILE and
RPG IV 
>> are not the same (Vernon already stated that, rightly so), database
design and 
>> OO are not the same (Relational DB and Object DB are different concepts).
You 
>> do not need  OO principles to develop a programme; it is all based on 
>> functional decomposition or better: modularization. Subroutines are the
lowest 
>> forms of modularization, functions and (service) programmes are the
higher 
>> levels.

I apologize if I was not clear. My intent was not to say that they are all
somehow equal. What I was saying that they all grew out of the study of
better ways to do programming and out of that came certain software design
principles. 

If I am creating a database, I am going to want to use the principles of
normalization. If I don't, I have a mess. If I am writing a program, I am
going to want to use the principals of functional decomposition and
information hiding, otherwise I am going to have a mess. So and so forth. 

As far as subroutines being at some level of modularization, I see what you
are saying but I am uncomfortable with the idea that subroutines are part of
modularization. I still have to use them with embedded SQL rather than doing
/Free and /End-Free all over the place but other than that, subroutines
should be dead, dead, dead. They provide nothing that you really need to
write good code. When we had nothing else in RPG III, that was what you had
but did not let you do much of anything in software engineering. Makes me
shudder to remember the days of trying to write good code in subroutines.
Like living a long running nightmare.    

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.