# Find What Changes and Fence It Off

When the part of a program that changes every week is mixed into the part that shouldn't change, every change risks the rest; finding what changes and giving it a home of its own, behind one wall, is the idea behind almost every design pattern, and it comes with two words worth knowing: coupling and cohesion.

![Cheat sheet: Find What Changes and Fence It Off](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/67fe64a22a0c482aae0f841518bd311f.webp)

- Category: Data Structures
- Level: Apprentice
- Tags: cohesion, coupling, Encapsulate What Varies, OOP, software-development
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-encapsulate-what-varies-cheat-sheet
