Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M2175

Clean Code

Clean Code
TechnicalHigh supportSoftware Engineering
Included
account_tree

Version 1.0.0 · Updated 2026-07-30

CORE DEFINITION

Code is primarily written for humans to read, and incidentally for machines to execute. Characteristics of clean code: clear naming, short functions, single responsibility, no duplication.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

A manifestation of professionalism. In any collaboration, the readability of the output is more important than showing off skills. Whether writing documentation, code, or emails, the highest standard is that the next person to take over can understand it instantly.

anchor

Anchor fast decisions

Robert C. Martin proposed that code should be readable, have single responsibility, clear naming, and no duplication, and be as maintainable as prose. It prioritizes maintainability.

MINIMUM ACTION

In progress 0/1

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/Robert_C._MartinZH · Explicit
    verified

RELATED MODELS