Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M2175

Clean Code

Clean Code
TechnicalHigh supportSoftware Engineering
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Robert Cecil Martin (born 5 December 1952), colloquially called "Uncle Bob", is an American software engineer, instructor, and author. He is most recognized for promoting many software design principles and for being an author and signatory of the influential Agile Manifesto. Martin has authored man…

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. Scaffold use: 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.

How to use

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.

Mechanism

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.

Practice

In progress 0/1

Practice this model in one real situation:

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

Cases

  • Refactor long functions into short ones. Use intention-revealing names instead of comments.

Common pitfalls

  • Over-abstraction increases complexity. Sacrificing necessary performance for cleanliness.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Robert_C._MartinZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS