Are You Obeying the Single Responsibility Principle(SRP)?
Do you know the Single Responsibility Principle(SRP)?
Violating the Single Responsibility Principle(SRP)?
This follows the Single Responsibility Principle.Combinations with other parts of speech
This violates the Single Responsibility Principle.
They also follow the Single Responsibility Principle.
SRP- Single responsibility principle.
What is the Single Responsibility Principle(SRP)?
Single Responsibility Principle(SRP):.
Single responsibility principle(S).单一职责原则(缩写为SRP)是指,每个软件模块都应该有且仅有一个改变的原因。
The Single Responsibility Principle(SRP) states that each software module should have one and only one reason to change.这样即可满足“单一职责原则”,即每个组件只有一个变更理由。
This fulfills the Single Responsibility Principle, where each component has only one reason to change.单一职责原则,鼓励您将功能,类型、方法结构化为具有自然内聚的包;
The Single Responsibility Principle encourages you to structure the functions, types, and methods into packages that exhibit natural cohesion;单一职责原则,开放封闭原则,Liskov替换原则。
In my latest posts I introduced the Single Responsibility Principle, the Open Closed Principle and the Liskov Substitution Principle of SOLID.简介:单一职责原则(SRP:Singleresponsibilityprinciple),它规定一个类应该只有一个发生变化的原因。
Follow the Single Responsibility Principle(SRP), which states that a class should have only one reason to change.使用事件订阅者并不常见,特别是在组件中,因为它能够轻易的打破单一职责原则。
Using event subscribers should be a less common approach, especially in components,as it can easily break the single responsibility principle.微服务是有关松散耦合的服务,它采用的是单一职责原则。
Microservices is all about making services loosely coupled,applying the single responsibility principle.而如果一个类做了太多的事情,也就说明其违反了单一职责原则。
If a class does too many things it also violates the Single Responsibility Principle.单一职责原则(缩写为SRP)是指,每个软件模块都应该有且仅有一个改变的原因。
(1) Single Responsibility Principle(SRP)- Each software module should only have one reason to change.尽管它一是个非常必要的方式,然而ActiveRecord(AR)模式违反了单一职责原则(SRP),因为AR模型:.
Despite the fact that it is a very necessary approach, the Active Record(AR)pattern violates the Single Responsibility Principle(SRP) because AR models:.
This is a violation of the single responsibility principle.单一职责原则(SingleResponsibilityPrincipe).
Small number of responsibilities(single responsibility principle).
These components also adhere to the single responsibility principle.单一职责原则,开放封闭原则,Liskov替换原则。
Principles of logical design: the Open-closed principle, and the Liskov substitution principle..单一职责原则(Singleresponsibilityprinciple).
Small number of responsibilities(single responsibility principle).你会意识到你需要使用单一职责原则,或者你可能意识到你已经做得很好了。
You may realize that you need to apply the Single Responsibility Pattern, or you may realize that you have done a great job already.上世纪90年代晚期,我试图把这些概念整合成一个原则,我把它称之为:单一职责原则(TheSingleResponsibilityPrinciple)。
In the late 1990s I tried to consolidate these notions into a principle,which I called: The Single Responsibility Principle.