分离了表示层和业务逻辑的程序也很容易被测试。
Testing also becomes easier when you separate presentation and domain logic.
MVC 开发人员通常直接在表示层中包含业务逻辑代码进行 “欺骗”(而不是包含到它所属的服务层中)。
MVC developers can frequently "cheat" by including business logic code directly in the presentation layer, instead of the service layer where it belongs.
逻辑层将概念体系结构划分为在应用程序内扮演特定角色的组件,如表示层、应用程序逻辑层、业务流程层和数据访问层。
Logical tiers divide the conceptual architecture into components that play specific roles within the application, such as presentation, application logic, business processes, and data access.
应用推荐