-> I think the trap they are falling into is the same one that is luring
-> me into sloppiness - almost limitless memory. I find that to get a
-> working version going I would rather change a bit of code slightly
-> and make it a new Sub/Function than to figure a clever way of using
-> existing code to do the same thing. Bloats the code terribly for
-> now.
I have seen many programs that include large chunks of code that are
never executed under any circumstances. The programmer had second
thoughts, and never bothered to clean up after himself.
I have sometimes wondered if it might be possible to do this
automatically - to set up some sort of "supervisor" which would watch a
program as it is running for a long time, and take note of any bits that
are never used. Eventually, it would cut them out. But, of course, this
would probably cause problems by removing error traps and the like,
which are executed only very rarely but are very valuable when they are
needed.
dow
--- PCBoard (R) v15.3 (OS/2) 5
---------------
* Origin: FidoNet: CAP/CANADA Support BBS : 416 287-0234 (1:250/710)
|