Skip to content
public-library›Rules›Code design›Hide implementation decisions behind meaningful interfaces

Hide implementation decisions behind meaningful interfaces

Hide implementation decisions so callers neither need to understand them nor depend on them. Give each decision one owning module, and keep in the interface any fact callers need to use the module correctly.

In the full rule