[GRASS5] Severe (simple to fix?) problem with current GRASS
jhickey at hpcc.nectec.or.th
Mon Jan 15 07:08:12 EST 2001
Andreas Lange wrote:
> i agree with removing the alpha and contrib distinction.
> But i am not shure if it is wise to remove the cmd and inter(active)
> The command line and interactive modules have to be distinguished
> somehow and the setup worked perfectly. Why replacing a working setup
> with something else that causes a lot of work?
> Just my opinion on this.
> I have to look if my dejagnu testing suite is affected and fix.
The reason for merging the two programs (cmd and inter) is for code
maintainability. Basically the two programs should be exactly the same
except for how they process user input. This difference in input
processing should be done as separate functions, not as separate
programs. All that is needed is a simple check for command line
arguments and you call the function that processes the arguments if they
exist. If there are no arguments, then you call the function that
prompts the user for the input.
This way, if you want to change the program, you only need to change one
program, not two. Thus, the code is easier to maintain.
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev