按年被提到
20072023 · 33 次2026
开源书›编程入门·No.2·简称 HtDP

How to Design Programs

如何设计程序
Matthias Felleisen, Robert Bruce Findler, Matthew Flatt, Shriram Krishnamurthi

用 Racket 教你按步骤设计程序的入门教材

免费阅读 ↗
被推荐 · 170 人首次 2007-05-10 · 最近 2026-08-17许可证 CC BY-NC-ND 2.0
170不同的人
124活跃月份
92有推荐的月份
210讨论串

How to Design Programs(HtDP)面向第一次学编程的人,用 Racket 系的教学语言,把写程序拆成一套可重复的设计步骤:先分析数据,再写函数契约和示例,最后写出函数体。书里有大量练习,并配套 DrRacket 环境。和 SICP 相比,它更慢、更手把手,重点是教会读者怎样思考程序,而不是展示语言的表达力。

HN 为什么推荐它

HN 上的人常把它当作比 SICP 更容易上手的第一本书,称赞它讲得清楚、练习多,适合自学和零基础的人,也有人说老手拿来复习同样有用。

难度 1 / 5约 80 小时开放许可
适合谁

想从零系统学编程、喜欢循序渐进的自学者

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1从头读起,配合 DrRacket 动手,不要只看不写
  2. 2每一章的设计步骤都照着做,先写数据定义和示例再写代码
  3. 3练习尽量全做,这是书的核心
  4. 4学完想挑战更深的内容,再接着读 SICP

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
推荐mpresh · 2007-05

“Also a great way to learn to program the right way.”

推荐它作为用正确方式学编程的好途径
What is your recommended beginner's hacker training course?原评论 ↗
推荐bluishgreen · 2007-08

“these are books I read in the past year and was very impressed with the clarity of the presentation.”

读后印象深刻,称赞它讲解清晰
News.YC Library原评论 ↗
推荐jcl · 2008-05

“leaves out a link to "How to Design Programs", an introductory programming text (available in full online) designed to complement DrScheme.”

补充推荐这本与 DrScheme 配套的入门编程教材,全文可在线读
Introductory Resources and Lectures on Lisp, Scheme原评论 ↗
推荐silentbicycle · 2008-12

“Read HTDP, SICP ((链接)), and/or CTM ((链接)), and do most of the exercises.”

与 SICP、CTM 并列推荐,建议做完大部分习题
Ask HN: How should I go about learning CS?原评论 ↗
推荐chollida1 · 2009-05

“I got more out of How to Design Programs than I did from SCIP.”

自己从 HTDP 学到的比 SICP 更多
Ask HN: After SICP, what next?原评论 ↗
推荐cesare · 2009-07

“Here's a book to get you started (it is fully available online):”

推荐它作为入门起点,全文在线可读
Download Lisp to my brain.原评论 ↗
看全部 20 条 →
推荐jmonegro · 2009-11

“Also check out How to Design Programs”

推荐给完全的编程初学者
Ask HN: Learning 2 Hack - For the very first time. With a deadline.原评论 ↗
推荐macco · 2009-12

“I guess you are learning on your own, so I would recommend How to Design Programs or (链接).”

推荐给自学者,教怎么设计程序
Ask HN: How to become a better programmer?原评论 ↗
推荐andrewcooke · 2010-03

“have you tried "how to design programs"? How to Design Programs”

问对方是否试过它,当作学习设计程序的去处
How to begin to teach yourself how to code, starting from scratch原评论 ↗
推荐motxilo · 2010-10

“"How to design programs"[1] might be a good fit for you.”

推荐作为学 CS 之前合适的第一本书
Ask HN: going back to school, what books before CS?原评论 ↗
推荐dm3 · 2010-12

“Try to work with books which have exercises - such as "Structure and Interpretation of Computer Programs" ((链接)), "Introduction to Theory of Computation" ((链接)) or "How To Design Programs".”

与 SICP 等并列,推荐带习题的书来学编程
The Hacker's Path原评论 ↗
推荐pdelgallego · 2011-01

“It teach scheme/racket, and is one of the better books to teach programming that I've seen”

称它教 Scheme/Racket,是见过较好的编程教材之一
Ask HN: What should be my next programming language?原评论 ↗
推荐poet · 2011-03

“Krishnamurthi has also done some really great work teaching introductory programming. He and his coauthors wrote a book meant to occupy a similar space as SICP”

提到作者写的这本入门编程书,定位与 SICP 相近
Teaching programming languages: a novel approach原评论 ↗
推荐stray · 2011-03

“You could try starting with "How to Design Programs" at How to Design Programs (or buy the dead tree version). That book has been very helpful for some people.”

推荐作为学编程的起点,纸质版也可买,对不少人很有帮助
Best program and books to learn how to code?原评论 ↗
推荐spacemanaki · 2011-04

“I think I agree that How to Design Programs might be a better first book. It's certainly easier going”

认同它比 SICP 更适合当第一本书,读起来更轻松
How can I learn to program? 原评论 ↗
推荐cipherpunk · 2011-06

“Grab yourself a copy of Racket ((链接)) [also, the quickstart guide at (链接) might be useful], the How to Design Programs textbook, and most importantly, set aside some solid blocks of time to dive in.”

建议配合 Racket 用它学编程,并留出整块时间投入
Ask HN: I want to learn how to code. Can anyone tell me how to start learning?原评论 ↗
推荐pavelludiq · 2011-07

“After i learned python i went on to learn scheme,he might like "How to design programs".”

推荐给学完 Python 后想学 Scheme 的人
Ask HN: What book should I recommend to someone who just finished LPTHW?原评论 ↗
推荐belial · 2011-08

“"How to Design Programs" is a great resource for newcommers and professionals alike. It's a good revision and a good start.”

称它对新手和专业人士都是好资源,适合复习和入门
Ask HN: How do I make the transition from being a Python beginner?原评论 ↗
推荐hardboiled · 2011-09

“I actually prefer HTDP over SICP as an introductory text in computer programming and the Scheme language in particular.”

作为编程和 Scheme 入门教材,更喜欢 HTDP 而非 SICP
How to Design Programs, Second Edition原评论 ↗
推荐vegashacker · 2011-09

“"How to Design Programs" is aimed at beginners. I haven't read it, but the people behind it are top quality.”

称它面向初学者,自己没读过,但信任作者团队
PG's Rarely Asked Questions原评论 ↗