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.
Which pair describes a well-designed module?
- AHigh cohesion inside, low coupling to others
- BLow cohesion inside, low coupling to others
- CHigh cohesion inside, high coupling to others
Show the answer
High cohesion inside, low coupling to others. Changes stay local and don't ripple.
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