Skip to content

Glossary: Software Design Patterns in Rust

Coupling

Also written: loose coupling

How much one piece of code depends on the details of another. Loose coupling is good: changing the discount code shouldn't break shipping code.

Where the book teaches it

Related terms

Cohesion