Can someone show me what a good dependency matrix looks like and specify why?

后端 未结 4 2093
无人及你
无人及你 2021-02-14 07:01

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?

4条回答
  •  庸人自扰
    2021-02-14 07:39

    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:

    Layered code (code with no cycle, certainly the coolest thing that a DSM can show you at a glance)
    alt text

    Code with dependency cycles
    alt text

    High Cohesion / Low-Coupling
    alt text

    Hungry Caller
    alt text

    Popular Callee
    alt text

    Mutual Coupling
    alt text

    Data Object
    alt text

提交回复
热议问题