I tend to agree with you. Here, we still use the one sourde by type of
source.
I only see 2 drawback to putting everything in the same source file:
- if you want to do some kind of global search (like option 25 of PDM
on every member) you will look at all member types, even if you are just
interested in CL for example.
- If you have a big application, you may reach the maximum number of
member in a file sooner.
"Alan Campin" <Alan.Campin@xxxxxxxxxxxxxxxx> 2008-03-20 13:46 >>>
I use and have used a single source file QSRCF for years for all the
parts of a project.
This makes all the sense in the world to me. Why keep switching
between
different source files for different parts of an application when I
can
see everything in one place.
As an example, this is what I see if I use PDM for XVIFSX* member name.
XVIFSX RPGLE Integrated File System Functions
XVIFSX_B BND Integrated File System Functions-Bindary
XVIFSX_M01 RPGLE Integrated File System
Functions-Implementation
XVIFSX_M02 RPGLE Integrated File System Functions-Directory
Functio
XVIFSX_M03 RPGLE Integrated File System Functions-Binary File
Func.
XVIFSX_PR RPGLE Integrated File System Functions-Prototype
Or
XV0031*
XV0031 RPGLE Initial Program for CONSOLEMON.
XV0031_M01 CLLE Initial Program for CONSOLEMON-Wait for
Messages.
XV0031_M02 SQLRPGLE Initial Program for CONSOLEMON-Check message.
I guess my question is, why do people continue to use multiple source
files?
I tried to get our shop to a single source files and other programmers
had a canary. We have to have multiple source files because that is
the
way it has always been done! Drives me crazy because I have to look
through all kinds of source files trying to figure out where the
source
is.
The only issue that I know of is if people name source members by the
same name, a practice I strongly disagree with.
Other than way back on the System 38 somewhere an IBM programmer
decided
to use separate source files for different kinds of source, is there
any
reason to continue to use multiple source files?
As an Amazon Associate we earn from qualifying purchases.