What is Encapsulate What Varies?
Pull the parts of your code that change into their own modules. Leave the stable parts alone.

new cartridge · housing untouched
Encapsulate What Varies means you isolate…
Write it in your own words in the app.
In real work
Encapsulate what varies: we pulled payment providers into their own module so adding Stripe does not touch checkout UI.
In the illustration
The bolted housing sits still while the cartridge release flips, the old cartridge slides out and a new provider cartridge slides in; the four housing bolts never turn.
Ask your coding agent to find the three parts of the checkout module most likely to change, then apply encapsulate what varies: move each into its own file behind one interface and leave the stable code alone.
Try it now
The fastest way to learn a word is to use it. Open this line in the agent you already work in and watch what it does. Change the tool to the one you use.
Go further
01Practice
Make it stick
One term a day, a short quiz, and sentence practice that checks your own words.
02Verify
Prove you know it
Pass the quiz and keep it in a Skills Wallet you can share with anyone who needs proof.
03Career
Find the work that uses it
See which roles lean on this vocabulary, and what they pay in year one.





