From f8ec0611b66717537110833c1c4c245650f46976 Mon Sep 17 00:00:00 2001 From: Illia Volochii Date: Wed, 13 Apr 2022 21:39:28 +0300 Subject: [PATCH] Edit a statement about coupling and cohesion Co-authored-by: Roman Mogylatov --- docs/introduction/di_in_python.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/introduction/di_in_python.rst b/docs/introduction/di_in_python.rst index 503caa67..46c46beb 100644 --- a/docs/introduction/di_in_python.rst +++ b/docs/introduction/di_in_python.rst @@ -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.