F
Flash Gordon
Mark said:programmer.Containers are data structures that are used to organize storage.
Typical containers are vectors, tables, lists, hash tables, etc. [snip]
As you know, those structures are used daily by any serious C
Erm? I've programmed C for nigh on 15 years now and rarely use
complications of the type you describe. Are we talking the same
language?
No, I am sorry. We use different languages. As your friend "Flash
Gordon" in this same tyhread, that says:
"I've spent complete years without using vectors, tables, lists, hash
tables, etc. I used double buffering and arrays, but nothing involving
any complex data structures."
You use a subset of C tailored for people that do not want to use
a lot their brains.
No, I use the parts of C appropriate for the problems I am solving. For
solving algebraic problems I use the maths libraries, for simple comms
work I often use double buffering which is simple and efficient (the
comms I worked on just needed the latest message of any given type, so
writing to one buffer whilst reading from a second was perfectly
adequate) etc.
Fo other jobs I have used linked lists, and even implemented linked
lists in assembler where I really did need to use every trick in the
book to get the code as fast as possible whilst solving a problem that
could not be efficiently solved without linked lists. I also told those
in charge that they had chosen the wrong processor and if they had read
their own analysis of the processing requirements they would have known
this, but it was far too late by the time I became involved.
C is for dummies, C++ is for real programming, as everybody
should know by now. C should be kept in the basement and made
obsolete as fast as possible. Any discussion of real programming
and the real programming needs of people in 2004 should disappear
in favor of endless discussions about whether or not to use
scanf/fgets, etc.
If that is what you believe then comp.lang.c++ is just down the hall. In
the mean time I will continue to use BerkeleyDB which is (I believe)
mainly written in ANSI standard C as a back end for a product used by a
large amount of the construction industry in the UK which is also
written largely in ANSI standard C whilst using OO languages for the GUI
front end, Perl and sh for scripting and any other language or tool
that is appropriate to the job I am doing.