Thanks for all your replies.
It was in fact the "C++ Programming Language" by B. Stroustrup that got me
interested in this subject (API design). I like Chapters 23-25 in this book
and read them a number of times. But other than these chapters, I cannot
find any other good references on the API design issues, with real examples
and applications.
There are, of course, all these books that talk about generic issues
regardind API & object design, with virtually no code examples and a lot of
hand waving!
bora
"Achintya" <vs********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Bora Eryilmaz wrote: I am working on designing a set of abstract classes that would be
subclassed by the users and they have to implement the abtract (virtual)
methods.
Does anybody know of a good reference on designing APIs and class
libraries. I am particularly interested on how to design interface classes, what
kind of methods to provide to the users, etc.
I'd like to emphasize that what I want to learn is not how to
"create" abstract classes and interfaces, but how to design
"good/extendable/maintainable" interfaces.
Thanks
Bora
Hi,
Good/Extendable/Maintainable interface designs comes with hands-on
experience and by looking into design of those industry standards...i
would recommend to you to look into the design of STLs which would give
a fair idea of how the interfaces are to be designed...(would recomend
"C++ Programming Language" by B. Stroustrup for an explanation of the
STLs)
Also non-standards like Graph Template Library (GTL) and Boost Graph
Library (BGL) can help you learn many things about interface design.
Hope this would help you in design.
-vs_p..