用户登录
用户注册

分享至

有人可以告诉我一个好的依赖矩阵是什么样的并说明原因吗?

  • 作者: 王二爷14336586
  • 来源: 51数据库
  • 2022-10-28

问题描述

我想开始使用 D**,但不知道如何开始.

I would like to start using D**, 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:

分层代码(没有循环的代码,肯定是 D** 一眼就能看到的最酷的东西)

Layered code (code with no cycle, certainly the coolest thing that a D** can show you at a glance)

具有依赖循环的代码

Code with dependency cycles

高内聚/低耦合

High Cohesion / Low-Coupling

饥饿的来电者

Hungry Caller

受欢迎的被叫者

Popular Callee

相互耦合

数据对象

软件
前端设计
程序设计
Java相关