Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

high
cohesion
jargon

Definition: High cohesion

Educative Answers Team

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

High cohesion is a software engineering concept that refers to how closely all the routines in a class, or all the code in a routine, support a central purpose. Classes that contain strongly related functionalities are described as having high cohesion; the heuristic goal is to make cohesion as high as possible.

In other words, cohesion represents the degree to which a part of a codebase forms a logically single and atomic unit. Therefore, in essence, high cohesion means keeping parts of a codebase that are related to each other in a single place. A general rule of thumb is to make sure that any software has high cohesion.

High cohesion is often paired up with loose coupling.

RELATED TAGS

high
cohesion
jargon
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring