Canonical guidance

Use when

Avoid

Preferred pattern

Anti-pattern

Explanation: This is tempting because it simplifies collection logic, but it keeps paying the duplicate cost after the answer is already known.

Why

Related pages

Sources