接口分隔原则-Interface Segregation Principle (ISP) 单一职责原则-Single Responsibility Principle (SRP) 开闭原则-The Open-Closed Principle (OCP) ..
基于8个网页-相关网页
单一职责原则是一个好方法。
An appropriate way to do this is to think of the Single Responsibility Principle.
在单元测试中,它与实际用例相同或更小,因为单元服从于“单一职责原则”,您是测试它的单一职责。
In a unit test, it's the same but smaller — because your unit obeys the single responsibility Principle, you're testing its single responsibility.
第十章主要讲述了单一职责原则(SRP),这个原则在Martin的另一本书《敏捷软件开发:原则,模式与实践》中也曾讨论过。
Chapter 10 focuses heavily on The Single Responsibility Principle (SRP), a concept from Martin's previous work, Agile Software Development: Principles, Patterns, and Practices.
应用推荐