Re: Selecting Container for "Top 20" Application
mrc2323@cox.net (Mike Copeland) writes:
Am I missing something? Is/are there reasonably efficient ways to
Interfaces. Do not code to an implementation. Code to an interface.
By ?interface? I mean: (abstract) pure-virtual (base) class.
Write that interface to contain the functions you dream of
(the perfect container of your dreams, that is perfectly
suited to your needs)- as if they were already implemented.
Do not think about how to implement them at this time.
Next, implement (using a derived class with implementations
for the function signatures of the interface) them in a way
that optimizes not run-time, but your development time. If
you believe in testing or documentation, at this point, you
now might write documentation or tests for these classes.
Now, you can write your actual program using the dream
container.
Only when you then should observe that it is too slow, you
then can derive another class from the interface with a more
run-time efficient implementation.