Separation of Concerns, SoC
Updated 2026-07-30
Summary
In computer science, Separation of Concerns (SoC) is a design principle for separating a computer program into distinct sections, such that each section addresses a separate concern. A concern is a set of information that affects the code of a computer program. A concern can be as general as the details of the hardware being optimized, or as specific as the name of a class to be instantiated. A program that embodies SoC well is called a modular program. Modularity, and thus the separation of concerns, is achieved by encapsulating information in a section of code that has a well-defined interface. Encapsulation is a means of information hiding. Layered designs in information systems are another implementation of separation of concerns (e.g., presentation layer, business logic layer, data access layer, persistent data layer). Separation of concerns is the identification, encapsulation, and manipulation of software components that are associated with a specific concept or goal.
Definition
The principle of breaking a complex system into non-overlapping modules, each focusing on a specific function or aspect. For example, HTML handles structure, CSS handles style, and JS handles interaction. Scaffold use: A scalpel for deconstructing complexity. When life becomes a tangled mess, use SoC: physically isolate "work matters", "relationship matters", and "health matters". Don't think about work while eating, don't handle relationships while working. Handle one concern at a time.
Introduction
How to use
A scalpel for deconstructing complexity. When life becomes a tangled mess, use SoC: physically isolate "work matters", "relationship matters", and "health matters". Don't think about work while eating, don't handle relationships while working. Handle one concern at a time.
Mechanism
Complexity arises from the entanglement of concerns. By dividing a system into modules with clear boundaries and no overlap, each module solves only one problem and can be understood and modified independently without affecting others, thereby reducing cognitive load and change cost.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- In front-end development, separation of HTML/CSS/JS; in life, physically isolating work, relationships, and health, not thinking about work while eating; in organizations, separating front, middle, and back offices.
Common pitfalls
- Over-separation can lead to increased collaboration costs between modules (too much is as bad as too little); or unclear boundaries make the 'separation' ineffective.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E5%85%B3%E6%B3%A8%E7%82%B9%E5%88%86%E7%A6%BBverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS