"Kevin Powick" wrote
Quote:
On 2011-06-28 22:37:31 -0400, "Frank Winans" said:
One of the things I miss when I write macros instead of procs
Except for legacy support, why is anyone still using Procs and Macros
over BASIC?
We often just do sort / list commands at tcl.
|
If several variations of a certain report get used enough,
we commit them to a macro to save typing, since sometimes
several staff are logged into the same utility 'userid' and may have
the command stack locked briefly. We try to name these related
macros but with minor variations for screen width, etc with similar
enough names to sortc the md for them later on for housekeeping.
Unless that report is just overwhelmingly frequently run, it doesn't pay
to clutter up a program file with a basic screen to prompt for parameters
and do an Execute. Some of our staff are comfortable with tracking
down macro shortcomings on their own, but if presented with a program
driven report giving odd results they will instantly hand it off to an
engineer.
We've earned these perhaps quirky habits from long experience in
linux/unix/aix, where you tend to use a string of small stock text-handling
programs {'filters'} run sequentially on the base report information to
make a sort-of-what-you-wanted printout with very minimal effort.
If we instead preferred programs we'd probably want to whip up something
like the HELP command to document all the various ones with various
keywords, references to other programs and files and projects,
'destroy-after'
date, etc. It just doesn't pay to rely on some guru senior staff to have
all that
stuff memorized; next thing you know they have a heart attack or something.
Frank
Frank