Boat Anchor
Updated 2026-07-30
Summary
Refers to a piece of code or functionality retained in a codebase that is no longer useful (not called), but is kept because developers fear "it might be useful later" or "we don't know what will happen if we delete it," dragging down the system like an anchor.
Definition
Refers to a piece of code or functionality retained in a codebase that is no longer useful (not called), but is kept because developers fear "it might be useful later" or "we don't know what will happen if we delete it," dragging down the system like an anchor. Scaffold use: decisively cut off and let go. In life and management, regularly clean up those "boat anchors" (outdated regulations, old businesses no longer maintained, dusty clutter). If it might be useful later, version control (History) can retrieve it; delete it now.
Introduction
How to use
Decisively cut off and let go. In life and management, regularly clean up those "boat anchors" (outdated regulations, old businesses no longer maintained, dusty clutter). If it might be useful later, version control (History) can retrieve it; delete it now.
Mechanism
The software anti-pattern "Boat Anchor": retaining code/functionality/assets that are no longer called or valuable, often with the rationale "might be useful" or "afraid of breaking something if deleted." The cost is continuously slowing down the system (cognitive load, maintenance cost, risk of misuse), while version control already guarantees recoverability. Essentially, it is irrational retention caused by "sunk cost + loss aversion."
Practice
In progress 0/1Practice this model in one real situation:
Cases
- Dead code slows down compilation and reading; old product lines in enterprises that are no longer maintained but consume resources; personal clutter of "someday I'll use it"; legacy configuration files causing incidents.
Common pitfalls
- Reluctant to delete due to loss aversion, mistakenly thinking "keeping it costs nothing." Believing deletion is irreversible—modern VCS has solved this. Treating "might use" as "currently useful."
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E9%94%9Averified
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