Skip to content

Commit

Permalink
fix: redo the coupling/cohesion graphic (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
illright authored Sep 28, 2024
1 parent b30c0a8 commit faa602a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ sidebar_position: 1

Application modules should be designed according to **high cohesion** (should solve one specific task) and **low coupling** (independent of other modules) principles.

![coupling-cohesion-themed](/img/coupling.png)
<figure>
<img src="/img/coupling-cohesion-light.svg#light-mode-only" alt="" />
<img src="/img/coupling-cohesion-dark.svg#dark-mode-only" alt="" />
<figcaption>
Image inspired by https://enterprisecraftsmanship.com/posts/cohesion-coupling-difference/
</figcaption>
</figure>

Within the methodology, this is achieved through:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ sidebar_position: 1

Модули приложения должны проектироваться как обладающие **сильной связностью** (направленные на решение одной четкой задачи) и **слабой зацепленностью** (как можно менее зависимые от других модулей)

![coupling-cohesion-themed](/img/coupling.png)
<figure>
<img src="/img/coupling-cohesion-light.svg#light-mode-only" alt="" />
<img src="/img/coupling-cohesion-dark.svg#dark-mode-only" alt="" />
<figcaption>
Иллюстрация вдохновлена статьей https://enterprisecraftsmanship.com/posts/cohesion-coupling-difference/
</figcaption>
</figure>

В рамках методологии это достигается через:

Expand Down
1 change: 1 addition & 0 deletions static/img/coupling-cohesion-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/coupling-cohesion-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/coupling.png
Binary file not shown.

0 comments on commit faa602a

Please sign in to comment.