473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

API Design

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
Jul 23 '05 #1
7 2100
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.
So you also have 3 completely different example projects that re-use this
library, right?
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.
Design Patterns, Refactoring, Refactoring to Patterns, and the "Interface
Segregation Principle" and "Dependency Inversion Principle" from Agile
Software Development.
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.


Very briefly: By taking the extra care to push your library through enough
developmental iterations, with 3 or more clients, to see if it is in fact
maintainable. Anything else would be guesses, which are not good for
engineering.

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand
Jul 23 '05 #2
Phlip schrieb:
Very briefly: By taking the extra care to push your library through enough
developmental iterations, with 3 or more clients, to see if it is in fact
maintainable. Anything else would be guesses, which are not good for
engineering.

Q: How can I do X?
A: By doing it 3 times.

SCNR.

Jul 23 '05 #3
"Object-Oriented Analysis and Design with Applications (2rd Edition)"
by Grady Booch has a complete chapter titled "Frameworks: Foundation
Class Library". This chapter describes the process of designing a
framework API.

Deepa
--
EventStudio 2.5 - http://www.EventHelix.com/EventStudio
Generate Sequence diagrams from a simple declarative language

Jul 23 '05 #4
See Large-Scale C++ Software Design by Lakos. /david

Jul 23 '05 #5
da********@warpmail.net schrieb:
See Large-Scale C++ Software Design by Lakos. /david


although I agree that this is a very good book, I can't remember it
saying much about API design
Jul 23 '05 #6

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..

Jul 23 '05 #7
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..

Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: adb | last post by:
I came up with a replication configuration that is basically the result of all the restrictions of replication as well as the restrictions of allowable software on work PC's and I was curious if...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: Edward Diener | last post by:
In Borland's VCL it was possible to divide a component into design time and run time DLLs. The design time DLL would only be necessary when the programmer was setting a component's properties or...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
10
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.