From f75d90b21b19042f2d16d4eea735544577badfc5 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Tue, 8 Sep 2020 21:27:57 -0400 Subject: [PATCH] Change wording in the "What is DI?" page --- README.rst | 4 ++-- docs/introduction/what_is_di.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index e4e7b3e2..2cf68488 100644 --- a/README.rst +++ b/README.rst @@ -66,11 +66,11 @@ Coupling and cohesion are about how tough the components are tied. - **High coupling**. If the coupling is high it's like using a superglue or welding. No easy way to disassemble. - **High cohesion**. High cohesion is like using the screws. Very easy to disassemble and - assemble back or assemble a different way. It is an alternative to high coupling. + 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 brings the flexibility. Your code becomes easier to change and test. +Low coupling and high cohesion brings a flexibility. Your code becomes easier to change and test. How to implement dependency injection? -------------------------------------- diff --git a/docs/introduction/what_is_di.rst b/docs/introduction/what_is_di.rst index aa64c07c..12251340 100644 --- a/docs/introduction/what_is_di.rst +++ b/docs/introduction/what_is_di.rst @@ -17,11 +17,11 @@ Coupling and cohesion are about how tough the components are tied. - **High coupling**. If the coupling is high it's like using a superglue or welding. No easy way to disassemble. - **High cohesion**. High cohesion is like using the screws. Very easy to disassemble and - assemble back or assemble a different way. It is an alternative to high coupling. + 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 brings the flexibility. Your code becomes easier to change and test. +Low coupling and high cohesion bring a flexibility. Your code becomes easier to change and test. The example ~~~~~~~~~~~