Mail Archives: djgpp/2003/01/26/21:31:23
In alt.msdos
Mark Clements <usenet AT nokennel17spam DOT co DOT uk> wrote:
:> Joe Fischer <gravity1 AT shell1 DOT iglou DOT com> (PATHTYPER) wrote:
:> > I don't write the same routines a second time,
:> > let alone over and over.
:> > With the exception of part of the routine to
:> > assign a filename and file variable and check the
:> > existence of the file, I can't think of any routine
:> > that I would use twice.
:
: As just one of many examples of functions I've written that get used over
: and over again, my CheckInputFile() function is used in pretty much any
: program that requires filenames to be passed at the command line.
That's great, if you do a lot of programming using files.
: You pass
: the value of the argument variable where the file is located (or empty
: string if none) and a default extension (if applicable) and it will expand
: the filename and path, checking they exist, and prompt the user if there are
: any problems.
There area lot of possibilities using DOS error
checking, a BBS Sysop program called Qmove had some,
and I added several more to one version of it.
These types of programs are very useful, but
some of use just like to play with graphics, display,
and game programs. :-)
: The trick to making modular programming useful is
: to make your functions generic.
I am grateful for any and all programs having
considerable utility.
But in my programming, my objective is to
write _the_ program and make it work with a minimum
of bugs, some of which are due to my stupidity and
carelessness and some from the compiler and OS the
program is run on.
I have zero ambition to avoid having to write
code, in fact, the reason I write is to have more
to do to pass the time.
I get a big rush when I finally get lucky
and write something that works great and is a
little bit different or useful, or fun.
After winning a copy of IBM PC DOS 2000
I dis a googgle search of PC DOS 2000 and was
very surprised at some of the things I read,
and the number of people using one flavor of
DOS or another.
Joe Fischer
--
3
- Raw text -