714
edits
Tag: 2017 source edit |
|||
| Line 540: | Line 540: | ||
==企业设计模式 (Martin Fowler)== | ==企业设计模式 (Martin Fowler)== | ||
=== | ===组织代码的方法=== | ||
[[wikipedia:Martin Fowler|Martin Fowler]] | [[wikipedia:Martin Fowler|Martin Fowler]] 确定了三种组织代码的方法,称为模式: | ||
* | *'''事务脚本'''(每个用户操作的源代码都是线性的) | ||
这是过程语言中使用的老式模式。 | |||
缺点:代码冗余。需要了解物理模型以开发业务部件。 | |||
*'''域模型''' | |||
* | 这个概念可用于对象语言。业务流程(必须在此之前确定)是对象类的基础。 | ||
缺点:模型维护起来非常复杂。 | |||
*'''表模块''' | |||
This is a mix between 2 previous where we have only one unique class for each table of database. | This is a mix between 2 previous where we have only one unique class for each table of database. | ||
edits