CodeIntermediate

Decoupling

Also known as loose coupling · separation of concerns

Reducing unnecessary dependencies so parts can change, be tested, or be replaced with less impact on each other.

In the real world

Pass a repository interface to application logic instead of importing a specific database client everywhere.

Related

Go a little deeper