RP> Not to get into a very big discussion of the various evils of differen
RP> programming models. We all do what we have to to get the job done.
RP> Just because a Gosub uses globals does not mean it's a bad thing. It
RP> all depends on the Programmer, not the Language used (or mis-used).
RP> Same thing for subs.
For your own code, there is nothing wrong with gosubs. I use them all
the time myself. However for the project, in which multiple people
will be getting involved, using gosubs is out of the question. Global
variables would get out of hand, and of course you run into the problem
of different subroutines using the same variable names. Much better to
use SUB's in local mode, that way you know exactly what is being passed
in and changed, and can use them in "black box" mode. Have you ever
seen RBBS source code? Sheeessshh, get out the ragu sauce to eat with
that spaghetti nightmare and excessive use of variables. That is what
I would like to see avoided as much as possible. Someone should be
able to look at this code and figure out what is going on rather quickly,
instead of threading your way thru gosub calls and tracking global
variables. That is the biggest nightmare of rbbs source code.
Eric
--- QM v1.00
---------------
* Origin: Creekside Manor (805) 484-8016 CdCom Support BBS (1:206/2512.0)
|