Ad Code

How can we decrease Coupling?

How can we decrease Coupling?



Software coupling is defined as the degree to which a software module relies or depends on other modules. High coupling means that related classes have to know internal details of each other, changes ripple through the system, and the system is potentially harder to understand. Coupling can be reduced if we focus the following steps:

  1. Make the code easier to read. 
  2. Make classes easier to consume by other developers by hiding the inner workings of classes behind well-designed APIs. 
  3. Isolate potential changes to a small area of code. 
  4. Reuse classes in completely new contexts. 

Reactions

Post a Comment

0 Comments