Re: Overflowing a Long
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Tue, 6 Mar 2007 10:40:00 -0800
Robert Morley <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I'm not talking about the language in general (which I think is fairly
elegant overall), I'm talking about the file handling in particular. For
example, in what way is
Open "C:\test.dat" For Random Access Read Write Lock Read Write As #1
Len=512
in ANY way elegant?
It really couldn't be simpler! That's the point.
Open [filename] For [usage] As [handle]
Maybe you had to "grow up" on a command line to appreciate the clarity there?
While that's certainly the worst of them,
I see it as *far* superior to any sort of object-based method, for both ease of use
and comprehension. Any student programmer can grasp the fundamentals of this syntax
in the first week of courses.
the Print #, Get # and similar statements aren't exactly tidy in some of their
permutations either.
They're pretty danged straight-forward, too.
Object-orientation would have gone a long way to
solving this inelegance, but I guess we're any number of years too late for
that at this point. :)
Only for accomplished snobs. For beginners, that means they need to spend *weeks*,
at least, getting up to speed before they can even begin to accomplish anything
useful. Not to mention, file i/o is the *last* place you want to introduce
unnecessary overhead. So objects are inherently inefficient, in addition to being
opaque. Toss newbs into the mix, and you have just prescribed a royal mess.
--
..NET: It's About Trust!
http://vfred.mvps.org
.
- Follow-Ups:
- Re: Overflowing a Long
- From: Robert Morley
- Re: Overflowing a Long
- References:
- Re: Overflowing a Long
- From: Michael C
- Re: Overflowing a Long
- From: Mike Williams
- Re: Overflowing a Long
- From: Michael C
- Re: Overflowing a Long
- From: Mike Williams
- Re: Overflowing a Long
- From: Michael C
- Re: Overflowing a Long
- From: Karl E. Peterson
- Re: Overflowing a Long
- From: Michael C
- Re: Overflowing a Long
- From: Bob O`Bob
- Re: Overflowing a Long
- From: Robert Morley
- Re: Overflowing a Long
- From: Karl E. Peterson
- Re: Overflowing a Long
- From: Robert Morley
- Re: Overflowing a Long
- Prev by Date: Re: how to get back to the MIDFORM menu
- Next by Date: Re: Seriously OT: Vista
- Previous by thread: Re: Overflowing a Long
- Next by thread: Re: Overflowing a Long
- Index(es):
Relevant Pages
|