Behavior Locality
← Back to Tell Don’t Ask
Behavior should live with the data it acts upon. When behavior is spread across multiple places, changes require hunting through the codebase. Locality ensures that related logic is co-located with its data.