mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-13 17:42:20 +03:00
Fix a statement about coupling and cohesion that is not always true
https://enterprisecraftsmanship.com/posts/cohesion-coupling-difference/#_types_of_code_from_a_cohesion_and_coupling_perspective
This commit is contained in:
parent
4188f721d6
commit
80cc30523b
|
@ -49,7 +49,7 @@ Coupling and cohesion are about how tough the components are tied.
|
|||
- **High cohesion**. High cohesion is like using the screws. Very easy to disassemble and
|
||||
assemble back or assemble a different way. It is an opposite to high coupling.
|
||||
|
||||
When the cohesion is high the coupling is low.
|
||||
High cohesion often correlates with loose coupling, and vice versa.
|
||||
|
||||
Low coupling brings a flexibility. Your code becomes easier to change and test.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user