Hacker News new | past | comments | ask | show | jobs | submit login

Cohesion and coupling certainly are not synonyms.

Cohesion is about how much the code within a single module deals with the same or closely related concerns, so that behaviour "belongs together". High cohesion is usually considered desirable.

Coupling is about how much multiple modules depend on each other. For example, do they communicate only via a clearly defined interface, or do they have implicit dependencies like sharing memory or resources? Loose (i.e., low) coupling is usually considered desirable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: