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:
Illia Volochii 2022-04-09 16:13:48 +03:00
parent 4188f721d6
commit 80cc30523b
No known key found for this signature in database
GPG Key ID: 9BC2D949988CE605

View File

@ -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.