Edit a statement about coupling and cohesion

Co-authored-by: Roman Mogylatov <rmogilatov@gmail.com>
This commit is contained in:
Illia Volochii 2022-04-13 21:39:28 +03:00
parent b007d3483b
commit f8ec0611b6
No known key found for this signature in database
GPG Key ID: 9BC2D949988CE605

View File

@ -49,7 +49,8 @@ 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.
High cohesion often correlates with loose coupling, and vice versa.
Cohesion often correlates with coupling. Higher cohesion usually leads to lower coupling, and vice
versa.
Low coupling brings a flexibility. Your code becomes easier to change and test.