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