jargon

Architecture & practice·Design, structure and tradeoffs

the call only works if you remember to call the other method first, and nothing tells you that.

Temporal coupling

Also calledorder dependence

A dependency not on what another piece of code does but on when it is called. Two methods that must run in a particular order, an object that must be configured before it is used, a test that passes alone and fails in a suite. It is the hardest coupling to see in review because it is invisible in the type signatures, and it is usually discovered by someone new who called things in the obvious order.

Commonly confused with