Loading lesson…
Level 1 · Apprentice0 XP
Let a central object coordinate many parts instead of them all talking to each other.
Step 1 / 5
ProblemA booking form: choosing a country changes currencies, which changes prices, which enables payment options, which changes the summary. Each component calls the others directly. One change breaks three screens.
← → step
Before this: Iterator
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Build a checkout form mediator with four fields (country, currency, shipping, total). Components must only reference the mediator. Write a test that changing the country updates the other three.