有人能告诉我一个好的依赖矩阵是什么样的,并指定为什么? [英] Can someone show me what a good dependency matrix looks like and specify why?

查看:976
本文介绍了有人能告诉我一个好的依赖矩阵是什么样的,并指定为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用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 at a Glance 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:

分层代码(没有循环的代码,当然是帝斯曼能够一目了然的最酷的东西)

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

Hungry Caller

热门Callee

Popular Callee

相互耦合

Mutual Coupling

数据对象

Data Object

这篇关于有人能告诉我一个好的依赖矩阵是什么样的,并指定为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆