单一职责原则Single Responsibility Principle,SRP定义:一个类只负责一个功能领域中的相应职责。或者定义为:就一个类而言,应该只有一个引起它变化的原因。简单来说,就是类不能太大,一个类承担的职责越多,它被复用的可能性就越小,当一个类承担的职责过多,就相当于这些职责耦合在一起,当其中一个职责变化时,可能导致其他不必要的职责也发生变化,因此需要将这些职责进行分离,将...
MVCModel - The model represents data and the rules that govern access to and updates of this data. In enterprise software, a model often serves as a software approximation of a real-world process.模...