阅读背景:

您如何定义单一责任?

来源:互联网 

I know about "class having a single reason to change". Now, what is that exactly? Are there some smells/signs that could tell that class does not have a single responsibility? Or could the real answer hide in YAGNI and only refactor to a single responsibility the first time your class changes?I know about "class having a single reason to c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: