DSA Factory
Free SOLID and design smells lessonsSOLID and design smells · Stage 2 · Spotting trouble · Step 1

Cohesion and coupling

The two measures behind every principle in this topic, and how to judge a design with them. About 11 minutes.

Quick check

Which pair describes a well-designed module?

  1. AHigh cohesion inside, low coupling to others
  2. BLow cohesion inside, low coupling to others
  3. CHigh cohesion inside, high coupling to others
Show the answer

High cohesion inside, low coupling to others. Changes stay local and don't ripple.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve