语言和开发规则: Difference between revisions

Jump to navigation Jump to search
Tag: 2017 source edit
Line 540: Line 540:
==企业设计模式 (Martin Fowler)==
==企业设计模式 (Martin Fowler)==


===代码组织模式===
===组织代码的方法===
[[wikipedia:Martin Fowler|Martin Fowler]] has identified 3 ways to organize code:
[[wikipedia:Martin Fowler|Martin Fowler]] 确定了三种组织代码的方法,称为模式:


*The '''Transaction Script''' (The source code is linear for each user action).
*'''事务脚本'''(每个用户操作的源代码都是线性的)


This is the old school used by all procedural languages.
这是过程语言中使用的老式模式。
Inconvenient: Redundancy of code. Need to know the physical model of data to develop.


*The '''Domain Model'''
缺点:代码冗余。需要了解物理模型以开发业务部件。


This notion is available with object languages. It is business process (to identify before) that are used for objects classes.
*'''域模型'''
Inconvenient: Model very complex to maintain.


*The '''Table Module'''
这个概念可用于对象语言。业务流程(必须在此之前确定)是对象类的基础。
 
缺点:模型维护起来非常复杂。
 
*'''表模块'''


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.
714

edits

Navigation menu