Understanding Cohesion

I just finished learning about Cohesion and it’s part and here is a summary.

What is it?

It is how your module is structured, not how it communicates/integrates with another module. That is a couple.

There are 7 types of Cohesion…


This content originally appeared on DEV Community and was authored by Waqas Younis

I just finished learning about Cohesion and it's part and here is a summary.

What is it?

It is how your module is structured, not how it communicates/integrates with another module. That is a couple.

There are 7 types of Cohesion

The best one is Function Cohesion, where everything that helps do a specific well-defined task is kept in one module. Like an Authentication Module, which offers functionality like login, logout, forgot password, etc

The worst one is Coincidental Cohesion, where there is no specific relation between the elements, except that they are at the same place. Consider a Utility module that has all sort of functions like String Format, Printing Log, Creating New File, etc.

The other ones didn't look interesting to me, they were like different sides of the same coin.


This content originally appeared on DEV Community and was authored by Waqas Younis


Print Share Comment Cite Upload Translate Updates
APA

Waqas Younis | Sciencx (2024-07-14T01:05:12+00:00) Understanding Cohesion. Retrieved from https://www.scien.cx/2024/07/14/understanding-cohesion/

MLA
" » Understanding Cohesion." Waqas Younis | Sciencx - Sunday July 14, 2024, https://www.scien.cx/2024/07/14/understanding-cohesion/
HARVARD
Waqas Younis | Sciencx Sunday July 14, 2024 » Understanding Cohesion., viewed ,<https://www.scien.cx/2024/07/14/understanding-cohesion/>
VANCOUVER
Waqas Younis | Sciencx - » Understanding Cohesion. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/14/understanding-cohesion/
CHICAGO
" » Understanding Cohesion." Waqas Younis | Sciencx - Accessed . https://www.scien.cx/2024/07/14/understanding-cohesion/
IEEE
" » Understanding Cohesion." Waqas Younis | Sciencx [Online]. Available: https://www.scien.cx/2024/07/14/understanding-cohesion/. [Accessed: ]
rf:citation
» Understanding Cohesion | Waqas Younis | Sciencx | https://www.scien.cx/2024/07/14/understanding-cohesion/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.