Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1460

Strategy Pattern

Strategy Pattern
CreateHigh supportDesign Thinking
Included
account_tree

Version 1.0.0 · Updated 2026-07-28

CORE DEFINITION

In computer programming, the strategy pattern (also known as the policy pattern) is a behavioral software design pattern that enables selecting an algorithm at runtime. Instead of implementing a single algorithm directly, the code receives runtime instructions on which of a family of algorithms to use.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

In computer programming, the strategy pattern (also known as the policy pattern) is a behavioral software design pattern that enables selecting an algorithm at runtime. Instead of implementing a single algorithm directly, the code receives runtime instructions on which of a family of algorithms to use.

anchor

Anchor fast decisions

Refers to a type of behavioral pattern in Design Patterns that encapsulates interchangeable algorithms/strategies, allowing the caller to select different behaviors at runtime.

MINIMUM ACTION

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more

Source support: Explicit

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8FZH · Explicit
    verified

RELATED MODELS