接口应该小,最好只包含一个方法。
Interfaces should be small, preferably containing a single method.
倾听是自我思想和他人思想交流的接口。
软件开发中最重要的一个概念就是接口。
服务是通过定义良好的接口向对方提供价值。
A service is an offer of value to another through a well-defined interface.
正如名称所表明的,接口定义功能而非实现。
As the name suggests, an interface defines functionality without implementation.
如果熟悉这个接口,完全不需要再重新学习!
And if you are already familiar with this interface, there's no additional learning curve!
这些规范会定义服务消费者与提供商之间的接口。
These specifications will define interfaces between consumers and producers of the service.
模块化原则:编写由整洁的接口连接的简单部件。
Rule of Modularity: Write simple parts connected by clean interfaces.
接口与合同类似。
接口定义标准支持开发人员工具之间的互操作性。
Interface definition standards enable interoperability between developer tools.
第一条是:“面向接口编程,而非面向实现编程”。
The first principle is: "Program to an interface, not an implementation."
标准的HTTP方法可以大大简化和统一接口的设计。
The standard HTTP methods can greatly simplify and unify the design of interfaces.
与接口一样,扩展点定义了用户与服务提供者之间的契约。
Like an interface, an extension point defines a contract between the user and the service provider.
这样有助于避免单个庞大的接口,从而简化各个组件的维护。
This helps avoid monolithic interfaces and simplifies the maintenance of the separate components.
在面向对象的分析和设计方法中,系统接口通常被视为契约。
In Object Oriented Analysis and Design Methodology, a system interface is most often viewed as a contract.
如果将扩展点看作接口,那么扩展就是实现该接口的类。
If you think of an extension point as an interface, you can think of an extension as a class that implements that interface.
因此,由于接口,这三个不相关的类现在“讲同一种语言了”。
So, thanks to interfaces, our three unrelated classes now speak the same language.
编译器是作为程序设计人员和底层机器架构之间的接口的程序。
Compilers are programs that are the interface between the programmer and the underlying machine architecture.
正因为如此,开发人员才尝试将异步接口引入到应用服务器中。
This is why developers are trying to introduce asynchronous interfaces into application servers.
动态代理是这样一种类,它可以实现在运行时指定的一组接口。
Dynamic proxies are classes that implement a set of interfaces specified at runtime.
我们已经在底层编程模型的基础上构建了一个可移植的库接口。
A portable library interface has been established on top of that low-level programming model.
只要该接口保持不变,就可以修改其实现,且不影响整个系统。
As long as the interface stays constant, the implementation can change without affecting the overall system.
更有趣的是,可以将 XML文档用作应用程序之间的接口。
More interestingly, XML documents are used as interfaces between applications.
ErichGamma:接口提取出了对象之间的协作关系。
Erich Gamma: An interface distills the collaboration between objects.
重写代码会修改代码的行为甚至合约,而重构保持对外接口不变。
Rewriting code alters the behavior and even the contract of code, while refactoring preserves its outward interface.
好的接口设计可以大大减少远程调用的数量,从而节省执行时间。
A well-designed interface can greatly reduce the number of remote calls and thus execution time.
这一基本机制及其接口会随操作系统的不同而表现出明显的差异。
The underlying mechanism and the interface to that mechanism tend to be significantly different depending on the operating system.
这些是您必须实现的接口,虽然部分情况下,您可以使用默认策略。
These are interfaces you must implement, though in some cases you can use default ones.
当然,对我们而言,拥有完整且正确记录的接口是一种少有的奢侈。
Rarely do we have the luxury of working with completely and correctly documented interfaces, of course.
应用推荐