Disadvantages of low cohesion

  • Increased code duplication: Low cohesion can lead to the duplication of code, as elements that belong together are split into separate modules.
  • Reduced functionality: Low cohesion can result in modules that lack a clear purpose and contain elements that don’t belong together, reducing their functionality and making them harder to maintain.
  • Difficulty in understanding the module: Low cohesion can make it harder for developers to understand the purpose and behavior of a module, leading to errors and a lack of clarity.

Coupling and Cohesion – Software Engineering

The purpose of the Design phase in the Software Development Life Cycle is to produce a solution to a problem given in the SRS(Software Requirement Specification) document. The output of the design phase is a Software Design Document (SDD). 

Coupling and Cohesion are two key concepts in software engineering that are used to measure the quality of a software system’s design.

Table of Content

  • What is Coupling and Cohesion?
  • Types of Coupling
  • Types of Cohesion
  • Advantages of low coupling
  • Advantages of high cohesion
  • Disadvantages of high coupling
  • Disadvantages of low cohesion
  • Conclusion

Similar Reads

What is Coupling and Cohesion?

Coupling refers to the degree of interdependence between software modules. High coupling means that modules are closely connected and changes in one module may affect other modules. Low coupling means that modules are independent, and changes in one module have little impact on other modules....

Types of Coupling

Coupling is the measure of the degree of interdependence between the modules. A good software will have low coupling....

Types of Cohesion

Cohesion is a measure of the degree to which the elements of the module are functionally related. It is the degree to which all elements directed towards performing a single task are contained in the component. Basically, cohesion is the internal glue that keeps the module together. A good software design will have high cohesion....

Advantages of low coupling

Improved maintainability: Low coupling reduces the impact of changes in one module on other modules, making it easier to modify or replace individual components without affecting the entire system. Enhanced modularity: Low coupling allows modules to be developed and tested in isolation, improving the modularity and reusability of code. Better scalability: Low coupling facilitates the addition of new modules and the removal of existing ones, making it easier to scale the system as needed....

Advantages of high cohesion

Improved readability and understandability: High cohesion results in clear, focused modules with a single, well-defined purpose, making it easier for developers to understand the code and make changes. Better error isolation: High cohesion reduces the likelihood that a change in one part of a module will affect other parts, making it easier to Improved reliability: High cohesion leads to modules that are less prone to errors and that function more consistently,  leading to an overall improvement in the reliability of the system....

Disadvantages of high coupling

Increased complexity: High coupling increases the interdependence between modules, making the system more complex and difficult to understand. Reduced flexibility: High coupling makes it more difficult to modify or replace individual components without affecting the entire system. Decreased modularity: High coupling makes it more difficult to develop and test modules in isolation, reducing the modularity and reusability of code....

Disadvantages of low cohesion

Increased code duplication: Low cohesion can lead to the duplication of code, as elements that belong together are split into separate modules. Reduced functionality: Low cohesion can result in modules that lack a clear purpose and contain elements that don’t belong together, reducing their functionality and making them harder to maintain. Difficulty in understanding the module: Low cohesion can make it harder for developers to understand the purpose and behavior of a module, leading to errors and a lack of clarity....

Conclusion

In conclusion, it’s good for software to have low coupling and high cohesion. Low coupling means the different parts of the software don’t rely too much on each other, which makes it safer to make changes without causing unexpected problems. High cohesion means each part of the software has a clear purpose and sticks to it, making the code easier to work with and reuse. Following these principles helps make software stronger, more adaptable, and easier to grow....