Modularization
Modularization
Cohesion refers to the degree to which elements within a module work together
to fulfill a single, well-defined purpose. High cohesion means that elements are
closely related and focused on a single purpose, while low cohesion means that
elements are loosely related and serve multiple purposes.
Both coupling and cohesion are important factors in determining the maintainabil-
ity, scalability, and reliability of a software system. High coupling and low cohe-
sion can make a system difficult to change and test, while low coupling and high
cohesion make a system easier to maintain and improve.
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.