Re: Programming to an Interface



On 2006-05-14 08:59:18 -0500, Laurent Bossavit <laurent@xxxxxxxxxxxxxxxxxxxx> said:

Can you "program to an interface" in languages other than typed ? Are you automatically "programming to an interface" in such languages ?

Certainly! You call the method before you write the method! You write your methods by sending the messages that you would like your objects to accept. Then you add those methods to your objects.
--
Robert C. Martin (Uncle Bob)  | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |



.



Relevant Pages

  • Re: GoTo in Java
    ... Scripting languages are programming languages; ... override the method.via an interface, or write a new method in the wrapper. ...
    (comp.lang.cobol)
  • Re: object system...
    ... C/I is also unable to effectively facilitate some non-C/I languages, ... Interface is a poor-man's MI. ... Consider a doubly-linked list interface. ... such activity as programming, you better program before you execute ), ...
    (comp.object)
  • Re: Programming to an Interface
    ... you automatically "programming to an interface" in such languages? ... I would say that in statically typed languages there are interface in narrower sense, and in broader sense. ... If yes, then there is no programming to an interface in such languages, as everything id programming to an interface. ... Jim Coplien wrote in a more recent article: "That missing concept is a /role/." ...
    (comp.object)
  • Re: object system...
    ... layout need not break the client code (I have designed it to work even in ... the contract refers to the public interface. ... C/I is also unable to effectively facilitate some non-C/I languages, ... programmer MBTI types and their preferences for certain programming ...
    (comp.object)
  • Re: compiler for Chinese development language
    ... This relates to the development of vernacular ... Indian vernacular display, OS and programming languages. ... Bangla and other vernaculars. ...
    (comp.compilers)