将逻辑与数据放在一起 Logic and Data together
使用批处理计算,业务逻辑与数据的接近程度将极大地影响性能。
With batch computing, the proximity of the business logic to the data significantly impacts performance.
具体来说,DAO将业务逻辑与数据库持久性代码分隔开来。
Specifically, DAO separates business logic from database persistence code.
这都是错误的观念,突然将业务逻辑与数据绑定层的选择结合在一起,最终必然会造成混乱导致出现问题。
These are both bad ideas — suddenly you've married your business logic to your choice of a data binding layer, and at some point that's going to catch up with you and cause problems.
应用推荐