- Practical DevOps
- Joakim Verona
- 66字
- 2021-07-16 09:48:06
The principle of cohesion
In computer science, cohesion refers to the degree to which the elements of a software module belong together.
Cohesion can be used as a measure of how strongly related the functions in a module are.
It is desirable to have strong cohesion in a module.
We can see that strong cohesion is another aspect of the principle of the separation of concerns.