The point of the Single Responsibility Principle isn't just to write smaller classes and methods.
单一责任原则的要点不仅仅是写一些更小的类和方法。
Better education means longer school years, smaller classes and more after-school activities, all of which cost more.
提高教育质量意味着延长学年制、缩小班额、丰富课外活动,这些都需要增加投入。
In this way, you can create smaller classes and methods, which makes your code easier to test, debug, and modify, and thereby improves your overall quality and productivity.
通过这种方式可以创建更小的类和方法,使代码更容易测试、调试和修改,从而改进整体质量和生产率。
应用推荐