Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M2218

Code Smell

Code Smell
BusinessHigh supportManagement
Included
account_tree

Version 1.0.0 · Updated 2026-07-30

CORE DEFINITION

A characteristic in code that is not superficially a bug but hints at deeper design problems (e.g., overly long functions, messy variable names). It smells 'off,' and if not addressed, it will rot into bigger problems in the future.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

- Intuitive diagnosis: not only for code. Management also has 'smells' (e.g., meetings always without conclusions, employees avoiding eye contact). Don't wait for an accident to fix; when you smell a smell, refactor the process immediately.

anchor

Anchor fast decisions

Certain code structure characteristics (overly long functions, duplicated code, too many parameters, large classes, confusing naming) do not immediately cause failures, but they indicate fragile design, high coupling, or unclear responsibilities, which over time evolve into defects. Smells are early signals of maintainability issues, not functional bugs.

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
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Code_smellZH · Explicit
    verified

RELATED MODELS