Re: Interface-based programming

From: Joe Mayo (jmayo_at_nospamAtCSharpDashStation.com)
Date: 09/25/04


Date: Sat, 25 Sep 2004 17:22:16 -0600

Hi Patrick,

I agree that it's a pretty good book. I worked on a project that used
interfaces extensively and they solved a lot of problems in the context of
that application. So, I am an advocate of interfaces an encourage their
use. Some projects don't use interfaces, except for when they have to,
which I think is thier loss.

Joe

-- 
http://www.csharp-station.com
"Patrick Kristiansen" <patrick@sixulon.dk> wrote in message
news:457dae9b.0409250801.16533a2d@posting.google.com...
> Hi group!
>
> I've been reading Juval Löwys "Programming .NET Components", and I
> think it is a very good book, giving nice guidelines on how to really
> exhaust the possibilities of .NET in general.
>
> Juval Löwy is indeed an advocate of using interface-based programming
> (he wrote a chapter dedicated to it, and he's using it througout the
> book).
>
> I have one simple question. When designing your own components, is it
> true - according to the rules of interface-based programming - that
> you should create interfaces for your clients to use, and advertise
> for them to do so? So every time I design a class, it should have a
> corresponding interface?
>
> Regards,
> Patrick


Relevant Pages

  • Re: need some realworld examples
    ... > i was just reading an article on interface-based programming and the ... > business related topics where this would be useful. ... One example with which you might use interfaces in variable declarations ... Every product class could implement this class, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Hardware to test (FPGA-based) prototype?
    ... There's not much good designing a highly testable board that doesn't ... synchronous interfaces are very ... >test high-speed cards and interfaces? ... You could try to obtain a used DAS9200 or TLA510 system with a pattern ...
    (comp.arch.embedded)
  • Re: Programming to an Interface
    ... printing of »Applying UML and Patterns«, where Craig Larman, ... Designing interfaces first is a great goal. ... In such cases the discovery of interfaces can come late rather than early. ...
    (comp.object)
  • How to query interface using gcroot?
    ... I have a few C# .NET components which might implement one ... or several interfaces, let say I1, I2 and I3. ... The unmanaged C++ client consumes this component using ... gcroot template pointer. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Interface-based programming
    ... By creating interfaces and publicizing it to your clients, ... When designing your own components, ...
    (microsoft.public.dotnet.languages.csharp)