POEAA chapter 10 data mapper --Example: Separating the Finders (Java) 复习memento 黑箱形式 涉及角色:originator, memento, caretaker. 窄接口的关键在于marked interface. 隐藏public的一个思路是用reflection =======================
原创 2010-10-13 00:32:45
357阅读
Granularity is one of the most tricky issues with Remote Facade. Some people like to make fairly small Remote Facades, such as one per use case. I prefer a coarser grained structure with much fewer Re
原创 2010-10-14 00:04:34
368阅读
There are three common ways to do client session state: URL parameters, hidden fields, and cookies.   I come across many developers who have separate interfaces for every class they write. I th
原创 2010-10-15 00:57:09
309阅读
POEAA Of course, what vendors will tell you is that there's no overhead to using their middleware for remote and local calls. If it's a local call, it's done with the speed of a local call. If it's a
原创 2010-10-12 00:21:47
391阅读
* 《UML宝典》* 《UML业务建模》* 《设计模式》GOF* 《面M POEAA* 《高质量编程艺术》...
原创 2023-07-21 17:10:52
109阅读
          《企业应用架构模式》(POEAA)读书笔记 (1) -- 企业应用的特点  《企业应用架构模式》(POEAA)读书笔记 (2)--  表述   领域逻辑模式分为 事物脚本、领域模型、表模块和服务层四种模式  很多设计者喜欢把业务逻辑分成两类:领域逻辑和应用逻辑,前者只与问题领域有关、而后者有时被称为
1.NLayerApp是经典的DDD架构2.基础结构层:包括两方面内容,处理数据访问的基础结构层组件主要包含了仓储的具体实现、Unit Of Work(PoEAA,Martin Fowler)的实现、NLayerApp的实体模型定义,以及为单体测试做准备的Service Stubs(PoEAA,Martin Fowler);Cross-Cutting的基础结构层组件则主要包含了IoC(Invers
转载 2024-01-08 21:39:41
48阅读
Applying Domain-Driven Design and Patterns(ADDDP) With examples in C# and .NET是在Martin Fowler的PoEAA 和Eric Evans的Domain-Driven Design 之后的又一本有关Domain-Driven Design的书,目前很少很少的几本论述DDD开发的书籍之一.Jimmy Nilsson
原创 2007-07-06 21:07:00
761阅读
[原文地址:://.dualface.com/blog/?p=357] 许多开发者很疑惑为什么 FleaPHP 以高效开发为目标,却没有提供 Active Record 模式。本文尝试详细阐述这个问题。Active Record 是什么? Active Record 模式中文名为“活动记录”,在《企业应用架构模式》(PoEAA)一书中定义如下: 活动记录(Active Rec...
转载 2007-12-17 10:27:00
19阅读
作者:anders小明 需求背景现在的 样子如PoEAA中提到的: 事务脚本(Transaction Script)和表模型(Table Moduel)模式。存在问 题事务脚本看到的是零散的 数据,而表模型混合了下文要说领域模型和领域服务界限。1.     两者都导致了分析和设计的割裂,领域模型只存在于分析 中;数据间的内在关系无法通过代码体现;2.&n
正如从像《领域驱动设计》[Evans DDD]和《领域驱动设计和模式应用》[Nilsson ADDDP]这些书中学到的一样,在应用架构中引入领域模型模式(《企业应用架构模式》[Fowler PoEAA])一定会有很多益处,但是它们并不是无代价的。使用领域模型,很少会像创建实际领域模型类、然后使用它们那么简单。很快你就会发现,领域模型必须得到相当数量的基础架构代码的支持。领域
转载 2021-07-31 10:46:21
90阅读