Software Engineering KB

Home

❯

05 Software Design and Architecture

❯

00 OOP and SOLID Principles

❯

01 Concept

❯

Tell Don't Ask

Tell Don't Ask

Feb 10, 20261 min read

  • design-principles
  • tell-dont-ask

Tell Don’t Ask

← Back to Other Design Principles

Command objects, don’t interrogate them. Rather than asking an object for data and acting on it, tell the object what to do. This keeps behavior with the data it operates on, maintaining encapsulation.

Key Properties

  • Command Over Query
  • Behavior Locality

Related

  • Encapsulation (preserved by TDA)
  • Law of Demeter (related principle)

design-principles tell-dont-ask


Graph View

  • Tell Don’t Ask
  • Key Properties
  • Related

Backlinks

  • Other Design Principles
  • Law of Demeter
  • Behavior Locality
  • Command Over Query

Created with Quartz v4.5.2 © 2026

  • GitHub