Very long class names

后端 未结 7 1604
一个人的身影
一个人的身影 2021-02-18 13:41

I try to name a class (also members, properties and so forth) as exact as I can. But sometimes I’m not sure if this is so clever if the class name becomes huge (50 chars and mor

相关标签:
7条回答
  • 2021-02-18 14:14

    A long class name may be a hint that your class has to many responsibilities (notice I said 'may').

    See SRP for further details (sorry, I'm in a hurry ^^).

    0 讨论(0)
提交回复
热议问题