Design question on Interfaces
From: mike (mnishiza_at_yahoo.com)
Date: 06/02/04
- Next message: Michael Borgwardt: "Re: IDE better than NETbeans for gui component positioning ?"
- Previous message: Yu SONG: "Re: Java Newbie question"
- Next in thread: xarax: "Re: Design question on Interfaces"
- Reply: xarax: "Re: Design question on Interfaces"
- Reply: Roedy Green: "Re: Design question on Interfaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 2 Jun 2004 05:50:20 -0700
Does anyone have an example of a standard implementation of interfaces
in a system. Let's say I am developing a standard eCommerce
application. I want to have a light, portable set of classes that can
be used for my current client, but it should be flexible enough to
support other clients as well.
To me it makes sense to write my classes which interface with the
database and a few utilities, UI related classes, etc. Beyond that,
it seems to me that I should use interfaces and then write
implementations for each client. That would give me a few classes and
a bunch of interfaces, for which I would have to complete
implementations for each client. It should give me the ability to
write my base set of classes and not have to touch them again(except
for bugs of course).
It seems like a solid design to me, but I don't have much experience
in that area. I'm sure there will be no shortage of people who have
an opinion on this, so please, if you're just going to tell me how
stupid I am for even thinking this way, don't bother posting. I would
just like to know some pitfalls I may run into with this sort of
design.
- Next message: Michael Borgwardt: "Re: IDE better than NETbeans for gui component positioning ?"
- Previous message: Yu SONG: "Re: Java Newbie question"
- Next in thread: xarax: "Re: Design question on Interfaces"
- Reply: xarax: "Re: Design question on Interfaces"
- Reply: Roedy Green: "Re: Design question on Interfaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|