Re: linked list example [message #12753 is a reply to message #12683] |
Fri, 04 September 1998 00:00   |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Mark Hadfield (m.hadfield@niwa.cri.nz) writes:
> A linked list just cries out to be implemented as an object class. I wrote
> such a thing some time ago but will not post the code here for fear of
> ridicule.
I routinely post code here when I don't have the time
or energy to fix it up myself. Someone always grabs it
and a day later e-mails me the "corrected" code with all
those features I should have added in the first place.
If I'm just searching for bugs, I announce that the
program "works" or is "the best program I've ever
written".
I've been thinking of myself lately as more of an
"idea person" rather than a "programmer". It's easier
on the ego. :-)
> Robert Mallozzi (Robert.Mallozzi@msfc.nasa.gov) has written some container
> classes, including a last-in-first-out stack and a first-in-first-out queue.
> The queue is useful when reading data from text files, to avoid the
> performance hit when extending arrays, as discussed here a week or two ago.
You know, even with as much free code as there is out there,
I find that not too many people use it. I don't really know
why. Perhaps it is just hard to read other people's code,
or maybe you don't really understand it unless you write
your own (my reason for writing a linked list rather than
using the one Beau Legeer uses in the Advanced Programming
classes). In any case, I found I had to write a book to
call any attention at all to the programs I offer.
Now that I think about it, maybe I should revisit the
notion of program quality. :-)
Cheers,
David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|