Chapter 10 focuses heavily on The Single Responsibility Principle (SRP), a concept from Martin's previous work, Agile Software Development: Principles, Patterns, and Practices.
第十章主要讲述了单一职责原则(SRP),这个原则在Martin的另一本书《敏捷软件开发:原则,模式与实践》中也曾讨论过。
The Single Responsibility Principle (SRP)2 states that a class or module should have one, and only one, reason to change.
单一权责原则认为,类或模块应有且只有一条加以修改的理由。
The Single Responsibility Principle (SRP)2 states that a class or module should have one, and only one, reason to change.
单一权责原则认为,类或模块应有且只有一条加以修改的理由。
应用推荐