Lingua-e
← Glossary

What does "cohesion" mean in programming?

cohesion is one of the most common terms in software development. This guide explains what it means, how it is used in practice, and why it matters, with real examples from the developer world.

Definition

The degree to which the elements inside a module belong together and serve a single purpose. A highly cohesive module does one thing well. Low cohesion — mixing unrelated responsibilities — makes code hard to understand, test, and reuse.

Example

"A class that handles both email sending and PDF generation has low cohesion — split it into two focused classes."

Can you put this sentence in the right order?

Tap the words to place them here

Keep building your technical English

You just looked up what this word means. Lingua-e turns vocabulary like this into full practice: fill-in-the-blanks, listening, and real developer conversations.

Practice this for free

Related terms

Was this page helpful?