Can someone show me what a good dependency matrix looks like and specify why?(有人可以告诉我一个好的依赖矩阵是什么样的并说明原因吗?)
问题描述
我想开始使用 DSM,但不知道如何开始.
I would like to start using DSM, but not sure how to get started.
一个好的依赖矩阵是什么样的,为什么?它是如何工作的?
What does a good dependency matrix look like and why? How does it work?
推荐答案
在这篇博文中 毫不费力地识别代码结构模式 解释了如何使用依赖结构矩阵来识别代码结构模式.截图是使用 NDepend 工具的 依赖结构矩阵 完成的.以下是一些模式:
On this blog post Identify Code Structure Patterns with No Effort it is explained how to use a Dependency Structure Matrix to identify Code Structure Patterns. The screenshots are done with the Dependency Structure Matrix of the tool NDepend. Here are a few patterns:
分层代码(没有循环的代码,肯定是 DSM 一眼就能看到的最酷的东西)
Layered code (code with no cycle, certainly the coolest thing that a DSM can show you at a glance)
具有依赖循环的代码
Code with dependency cycles
高内聚/低耦合
High Cohesion / Low-Coupling
饥饿的来电者
Hungry Caller
受欢迎的被叫者
Popular Callee
相互耦合
数据对象
这篇关于有人可以告诉我一个好的依赖矩阵是什么样的并说明原因吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:有人可以告诉我一个好的依赖矩阵是什么样的并说明原因吗?
基础教程推荐
- 存储 20 位数字的数据类型 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
