An easy way to follow the Single Responsibility Principle is to constantly ask yourself whether every method and operation of a class is directly related to the name of that class.
遵循单一责任原则的最简单办法就是不断地问自己是不是这个类的每一个方法和操作都与这个类的名称直接相关。
Psychologists of the Gestalt school maintain that objects are recognized as wholes in a parallel procedure: the internal representation is matched with the retinal image in a single operation.
格式塔学派的心理学家认为,物体是在一个平行的过程中被识别为整体的:在一个单一的操作中,内部表征与视网膜图像匹配。
Semaphores allow synchronization of processes by testing and setting the integer value in a single atomic operation.
信号允许进程通过一个单一的原子操作来测试和设置那个整数的值,以此实现同步。
The key point is that no single interaction achieves the meaning of the required service operation.
关键是,任何单一交互都不能实现所需的服务操作的目标。
Thanks to this component, we do not need to chain the result of the GET operation to a subsequent service but can perform everything within a single service.
幸好有了这样一个组件,我们就无需将GET操作的结果发给随后的服务了,相反可以在单独的服务中完成一切。
However, human task components are unique because they support only a single interface that might have only a single operation.
然而,人工任务组件是独特的,因为它们仅支持单个可能只有单个操作的接口。
The race conditions illustrated in Listing 1 often make it necessary to hold the single collection lock for much longer than it takes to execute a single operation.
清单1中演示的争用条件常常使得对单个集合的锁在单个操作执行完毕之后还必须继续保持一段较长的时间。
Summary: as we determined last week, UML activity diagrams document the logic of a single operation or method, a single use case, or the flow of logic of a business process.
简介:正如我们上周已确定的那样,UML活动图记录单个操作或方法的逻辑、单个用例或商业过程的逻辑流程。
The simplest way to build web services is to associate a single operation with a single enterprise service, as shown in Figure 3.
构建Web服务最简单的途径就是将单个操作与单个企业服务结合起来,如 图 3 所示。
The WSDL portType operation accepts a single input message and a single output message.
WSDLportType操作接受单一的输入消息及单一的输出消息。
Weightless threads can, and usually should, be larger-scale than a single conceptual operation.
轻便线程可以(而且通常应该)比单独的概念性操作规模更大。
In this scenario, you could use a heterogeneous update to update the ORDER and ORDER_ITEMS table in a single database operation.
在这个场景中,可以使用异构更新在一个数据库操作中更新order和order_items表。
A return type and a single parameter are set for UML operation that represents a unary operator.
表示单目运算符的UML操作还设置有返回类型和一个参数。
A rule set can achieve the same results in a single operation, and if the same test is used in more than one rule in a rule set, it is still only evaluated once.
规则集可在同一操作中取得相同的结果,并且,如果规则集中多个规则采用了同一测试,该测试也仅评估一次。
Note that, although not needed in the example scenario, the option to paste directly into a target has a limit on the number of database objects and data that can be copied in a single operation.
注意,尽管在示例场景中不需要使用直接粘贴到目标位置的选项,但该选项对一次操作能够复制的数据库对象和数据存在限制。
There can be characteristics that are specific to a single service operation; for example, response time.
一些特征专门针对某一服务操作,例如响应时间。
Decompress all compressed NTFS files on a drive in a single operation. Optimize system performance.
一次操作即可解压缩一个分区中所有压缩的NTFS文件,优化系统性能。
According to the side cover structure characteristics of table model computer box, determined the progressive die and the single operation die.
根据台式电脑机箱侧盖的结构特性,确定了级进模与单工序模相结合的工艺方案。
And, if this process is applied repeatedly, the entire loop can be collapsed into a single synchronized block with a single "counter=10000000" operation.
而且,如果重复应用这个过程,整个循环将缩水成一个单独的同步块,这个同步块中只有一个 "counter=10000000"操作。
Importing multiple bindings in a single operation is now supported, improving efficiency.
现在,支持在单步操作中导入多个绑定,从而提高了效率。
DesignerTransactionImpl represents a single operation in a transaction.
DesignerTransactionImpl表示事务中的单个操作。
Combined queries should only apply if your connector can execute the combined query as a single operation.
只有在连接器能够将组合查询作为单一操作执行时,才应该应用组合查询。
As depicted in Figure 4, services can provide multiple operations, whereas a rule set realizes a single operation.
如图4中所示,服务可以提供多个操作,而规则集实现单个操作。
A large number of services, each containing a single operation or small number of operations, indicates inappropriate service granularity.
仅包含单个操作或少量操作的大部分服务都表明服务粒度不恰当。
In its basic form, a REST API is a URI that can perform a single operation.
RESTAPI的基本形式是可以执行单一操作的URI。
In some cases, the operations performed by the service method were limited to a single operation to demonstrate a specific point.
在一些情况下,服务方法执行的操作仅限于演示特定点的单个操作。
A new M_ZERO flag for malloc allows for memory allocation and zeroing in a single operation.
新的面向malloc的M_ZERO标记允许在单个操作中完成内存分配和调零。
The drawback of this approach is that multiple items in the item set need to be read or written for a single operation.
此方法的缺陷是对于单个操作需要读取或写入项目集中的多个项目。
Another common point of confusion regarding use of the term "service" is whether it refers to a suite of related operations or a single operation.
使用“服务”这个术语经常导致的另一种混淆是,它是指一套相关操作,还是指单一操作。
Another common point of confusion regarding use of the term "service" is whether it refers to a suite of related operations or a single operation.
使用“服务”这个术语经常导致的另一种混淆是,它是指一套相关操作,还是指单一操作。
应用推荐