惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Cisco Talos Blog
Cisco Talos Blog
C
Check Point Blog
博客园_首页
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
S
Security @ Cisco Blogs
L
LINUX DO - 最新话题
博客园 - 司徒正美
P
Privacy International News Feed
G
Google Developers Blog
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
K
Kaspersky official blog
I
InfoQ
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Webroot Blog
Webroot Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
大猫的无限游戏
大猫的无限游戏
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Microsoft Azure Blog
Microsoft Azure Blog
Spread Privacy
Spread Privacy
量子位
H
Hacker News: Front Page
Simon Willison's Weblog
Simon Willison's Weblog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
SecWiki News
SecWiki News
S
Security Affairs
Latest news
Latest news
人人都是产品经理
人人都是产品经理
C
CERT Recently Published Vulnerability Notes
S
Security Archives - TechRepublic
V
Visual Studio Blog
T
Troy Hunt's Blog
S
Secure Thoughts
F
Fortinet All Blogs
V
V2EX
The Register - Security
The Register - Security
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO

博客园 - 夜雨竹林

asp mvc3资料 设计模式之命令模式 设计模式之模板方法和策略模式的区别(二) 面向对象的分析和设计遵循的原则 设计模式之模板方法和策略模式的区别(一) 系统分析师网上内容推荐 英语学习资料 Repository模式 战略性设计之上下文 moq英文官方资料 moq中文介绍 UML用例图中包含(include)、扩展(extend)和泛化(generalization)三种 领域驱动设计软件核心复杂性应对之道 研究 asp.net mvc2 ajax 原理 studyurl aspdotnet部分资源 Asp.net MVC权限设计思考 asp.net小技巧 标准的ASP.NET名称空间
领域驱动设计软件核心复杂性应对之道速查
夜雨竹林 · 2010-10-10 · via 博客园 - 夜雨竹林

第一部分:让领域模型发挥作用

每个软件程序都会与其用户的活动或兴趣相关。用户在其中使用程序的主要环境成为软件的领域(domain)。

领域模型并不是某种特殊的图(diagram),而是图所要表达的思想。

领域驱动设计中模型的作用:

1、模型与设计核心的相互塑性。(参见第3章)

2、模型是所有团队成员所使用语言的核心。(参见第2章)

3、模型用来提炼知识。(参见第1章)

 一般项目的类分为三种:

1)基本类(领域模型)

2)服务类(一般作为领域等层的边界)

3)工具类(一般采用一些设计模式以便于更灵活的设计)

第二部分:模型驱动设计的构建块

第4章分离领域

第5章软件中的模型描述

5.1 关联

3种方法可以使得关联更易于控制

(1)指定一个导航的方向

(2)通过加入限定符(qualifier)来有效地减少关联的多重性(multiplicity)

(3)清除不必要的关联

示例:

数据库结构及代码如下:

其中QueryService是一个实用类,用来从数据库中获取一行行的信息并创建对象。只是用来说明这个例子。

第6章领域对象的生命周期

第17章综合应用战略性设计

17.1大比例结构和界限上下文的结合