Design question on Interfaces

From: mike (mnishiza_at_yahoo.com)
Date: 06/02/04


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.



Relevant Pages

  • Re: Disadvantages of Dependency Inversion?
    ... It depends on how many implementations and how many clients there ... If there is a single client but multiple implementations, ... so that the client package doesn't depend on the ... As a general rule I'd agree with you that the interfaces should ...
    (comp.object)
  • Re: Disadvantages of Dependency Inversion?
    ... As far as where you put those interfaces... ... It depends on how many implementations and how many clients there ... If there is a single client but multiple implementations, ... so that the client package doesn't depend on the ...
    (comp.object)
  • RE: Returning interfaces from web-services and remoting servers?
    ... interfaces and interface implementations. ... The web service is just a way to pass data ... > interfaces to the client. ...
    (microsoft.public.dotnet.framework)
  • Re: soapsuds
    ... We can then compile the client using this code which allows us to ... of this stops you from implementing your own remoting framework. ... server or be sure that the v1 clients will work with the v2 server. ... Are you going to have all new v2 interfaces in the ...
    (microsoft.public.dotnet.framework.remoting)
  • Exception with interface as parameter of a remoted object method
    ... aderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAp ... contains all the classes that implement the interfaces i've talked above ... that implements the IClienteManager interface ... And on client side i work only with interfaces. ...
    (microsoft.public.dotnet.framework.remoting)