“I found it interesting enough to include it in my ever-growing to-read list, worth checking out.”
Composing Programs
用 Python 讲 SICP 思路的伯克利 CS 61A 教材,带代码执行可视化
Composing Programs 是 UC Berkeley CS 61A 课程的讲义,以 SICP 为蓝本,改用 Python 讲抽象、高阶函数、递归、数据结构、面向对象和解释器等主题。John DeNero 的写法比 SICP 更简洁,书中嵌入 Python Tutor,可以逐步查看代码的执行过程。每章配有课程练习,适合边读边做。和 SICP 相比,它换成更主流的语言,门槛更低,但函数式风格和语言实现的内容不如 SICP 深。
HN 上的人常把它当作“用 Python 学 SICP”的替代品推荐给想学 Python 或想入门计算机科学的人,也提到嵌入式代码可视化很有教学价值;批评主要是书没有讨论递归深度限制、栈溢出等 Python 实际会遇到的问题。
想系统学编程思想的 Python 初学者,或想读 SICP 却嫌 Scheme 陌生的人
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1从第一章开始,别跳过函数和高阶函数的部分
- 2用书里的 Python Tutor 可视化逐步跟踪递归和环境模型
- 3做每章配套的练习,最好再对照 CS 61A 的课程作业
- 4读完想深入语言实现,再去读 SICP 对照
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“For Python you could start with:”
“"The text was originally published as lecture notes for CS 61A at UC Berkeley and is based upon the Structure and Interpretation of Computer Programs by Harold Abelson and Gerald Jay Sussman."”
“I'll just mention Composing Programs a take on sicp mostly in python.”
“If you are focusing on Python, here are a couple other suggestions that you might find useful:”
“Very well written, concise, and helps with getting a novice programmer going with Python.”
看全部 17 条 →
“Other than searching for topics to learn, I also recommend these resources to learn more about python and python for physics computation:”
“accompanying book:”
“Composing Programs does not even mention Stackoverflow errors and neither does it introduce a decorator to avoid them.”
“So the book is teaching an approach, that often might not be a viable good solution, simply ignoring the problems of the chosen tool.”
“[2]: Materials associated with 61A: Composing Programs”
“Demo of Python Tutor being used in a computer science textbook: Composing Programs”
“[9] John DeNero's Composing Programs Book: Composing Programs”
“Online tools to run & visualize code execution directly from the online textbook (ex: Composing Programs)”
“SOA uses message passing only as the synch mechanism, but sharing memory allows for other strategies with synch primitives such as semaphores or mutexes”
“see editions and derived books in Python and JavaScript[1][2]”
“They don't use SICP anymore. They use John DeNero's online text, Composing Programs.”
- A free online introduction to programming and computer science ↗jestinjoy1 · 2015-05-09 · 1 分
- Composing Programs, a free online introduction to programming ↗joeclef · 2015-09-07 · 11 分
- Composing Programs – Python 3 in the tradition of SICP ↗tillulen · 2016-04-10 · 300 分