惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - 培凇

谷歌拼音2 java ee 5 sdk 下载网址 2010-10-12 - 培凇 - 博客园 回到了博客园 接口 家家都有机器人(转载) Notice C programming 实践C语言注意事项 关于windows下PHP+MySQL的五个问题 欣赏幻灯片《如果我能再回到学生时代》有感 程序设计与人体条件反射 内部设计初学有感 健康人生系列漫画 软考报名 (北京 天津) 确定问题解决问题 在津留影 想通过软考程序员职称认证 TelephoneManage开始了 为人处事 数据库应用系统设计面临的常见的大的方面的问题?
Reductionism and Holism in Programming 归约与整体哲学方法在程序设计中的应用
培凇 · 2007-07-06 · via 博客园 - 培凇

    对于一般的程序可以用两种方法去理解。逐句分析,那么是从程序的第个独立的层面上理解程序,这是归约的方法。我们还可以从更全局的角度分析一个程序,主要考虑它作为一个整体是如何工作的,这种整体的角度使人可以从另一个角度分析程序,这对成功的程序设计来说至关重要。
    归约论(reductionism)是一种哲学方法。它认为只有理解一个事物的每一个组成部分后才能更好地理解该事物。整体论(holism)正好与之相反,它认为整体并非每一部分的简单叠加。在学习编写程序时,必须学会从这两种角度分析程序。若只注意大的方面,则不能理解解决问题需要的工具。若过分关注细节,则会只见树木不见森林。
    在学习程序设计时,最好的方法是交替使用这两种视角。整体论有助于从整体上把握程序的作用,使程序员对程序设计过程的直觉更加敏锐,并能够从较高的层面研究程序,说:“我理解这个程序是干什么的。”另一方面,在实际写程序时,刚需要适当采用归约法,以了解程序是怎样结合在一起的。

注:本文几乎完全节选自《C语言的科学和艺术》一书第22页 Rosberts,E.s. 著 翁惠玉等译 -北京:机械工业出版社,2005.3 书名原文:The Art and Science of C:A Library-Based Intoduction to Computer Science (ISBN 7-111-15971-3)
本文之所以没有在题目中标明转载,意在希望读者将主要注意力放在文章的主旨。