# 丹尼尔·希夫曼

**丹尼尔·希夫曼（Daniel Shiffman）** 是美国计算机程序员与创意编程教育者，纽约大学（NYU）蒂施艺术学院（Tisch School of the Arts）交互电信项目（Interactive Telecommunications Program，简称ITP）的副教授级艺术教授，著有《Learning Processing》和《The Nature of Code》，也是“编码列车”（The Coding Train）的出镜讲师——这是一个以实时编程教学为特色的YouTube频道。<sup>[1](https://itp.nyu.edu/itp/daniel-t-shiffman/)</sup> 他是Processing基金会的联合创始人，并担任其董事会成员。<sup>[1](https://itp.nyu.edu/itp/daniel-t-shiffman/)</sup><sup> • </sup><sup>[2](https://thecodingtrain.com/about)</sup> 在该频道上，他发布的教程涵盖从使用p5.js的[JavaScript](https://www.edgepedia.org/zh/javascript)编程和使用Processing的Java编程，到物理模拟、计算机视觉、数据可视化等生成式算法。<sup>[1](https://itp.nyu.edu/itp/daniel-t-shiffman/)</sup>

| 关键事实 | 详情 |
|---|---|
| 学术职位 | 纽约大学蒂施艺术学院ITP副教授级艺术教授；自2004年起教授“计算媒体导论”，自2008年起教授“自然之代码”课程<sup>[1](https://itp.nyu.edu/itp/daniel-t-shiffman/)</sup><sup> • </sup><sup>[3](https://natureofcode.com/introduction/)</sup> |
| 教育背景 | 耶鲁大学数学与哲学学士；ITP硕士学位<sup>[4](https://rhizome.org/editorial/2009/sep/23/interview-with-casey-reas-and-ben-fry/)</sup> |
| 著作 | 《Learning Processing》（Morgan Kaufmann，2008）<sup>[11](https://dlnext.acm.org/doi/10.1145/2157136.2157214)</sup>；《The Nature of Code》，2012年以知识共享许可自出版；2024年由No Starch Press出版p5.js版，ISBN 9781718503700<sup>[5](http://feiramoderna.net/download/pos-positivo/SHIFFMAN-Daniel/Daniel-Shiffman_Nature-of-code.pdf)</sup><sup> • </sup><sup>[6](https://www.penguinrandomhouse.com/books/739590/the-nature-of-code-by-daniel-shiffman/)</sup> |
| 编码列车 | 2012年在ITP录制首个视频；频道于2015年上线；Processing基金会采访时的订阅数为889,000，到2024年新书发布时已“接近200万”<sup>[3](https://natureofcode.com/introduction/)</sup><sup> • </sup><sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup><sup> • </sup><sup>[8](https://nostarch.com/nature-code)</sup> |
| 开源角色 | Processing基金会联合创始人及董事会成员；他在Processing和p5.js上的开源工作被视为其纽约大学研究实践的一部分<sup>[2](https://thecodingtrain.com/about)</sup><sup> • </sup><sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup> |
| ml5.js | 围绕TensorFlow.js的封装库，源自他的机器学习教程系列，在ITP开发，并获得谷歌教师研究奖的种子资助<sup>[9](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-part-2-c8fc506c2fbb)</sup> |
| GitHub足迹 | 账号shiffman，创建于2010年：19,515名关注者，174个公开仓库<sup>[10](https://github.com/shiffman)</sup> |

## 早年生活与职业生涯

希夫曼在耶鲁大学获得数学与[哲学](https://www.edgepedia.org/zh/philosophy)学士学位，并在ITP获得[硕士学位](https://www.edgepedia.org/zh/masters-degree)。<sup>[4](https://rhizome.org/editorial/2009/sep/23/interview-with-casey-reas-and-ben-fry/)</sup> 2003年，作为ITP的研究生，他选修了一门名为“动态身体”（Dynamic Bodies）的课程，内容涵盖向量、力、振动、粒子系统、递归、转向和弹簧。<sup>[5](http://feiramoderna.net/download/pos-positivo/SHIFFMAN-Daniel/Daniel-Shiffman_Nature-of-code.pdf)</sup> 那个学期接近尾声时，他在Processing仍处于alpha阶段（版本0055）时发现了它，由此开始了他所说的、用该工具教授编程概念的近八年旅程。<sup>[5](http://feiramoderna.net/download/pos-positivo/SHIFFMAN-Daniel/Daniel-Shiffman_Nature-of-code.pdf)</sup>

他在ITP的第一份教学工作是名为“程序化绘画”（Procedural Painting）的试点课程，本质上是通过图形和动画用Processing学习编程。他为该课程编写教程和讲义并发布到网上，这些材料最终成为《Learning Processing: A Beginner's Guide to Programming Images, Animation, and Interaction》一书，由Morgan Kaufmann于2008年出版。<sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup><sup> • </sup><sup>[11](https://dlnext.acm.org/doi/10.1145/2157136.2157214)</sup> 他于2008年将入门课程材料整合成该书，随后于2015年创建了p5.js视频教程系列。<sup>[3](https://natureofcode.com/introduction/)</sup>

## 编码列车

2012年，希夫曼在ITP的办公室里一时兴起录制了第一堂编程视频课，同年开始制作视频，并于2015年推出“编码列车”YouTube频道。<sup>[3](https://natureofcode.com/introduction/)</sup><sup> • </sup><sup>[2](https://thecodingtrain.com/about)</sup> 该项目自称是一个欢迎初学者程序员和好奇代码的人用代码表达自我的社区，提供系列化和单集视频教程以及直播活动。<sup>[2](https://thecodingtrain.com/about)</sup>

**成长与收入。** YouTube的触达和直播迅速扩大了受众，形成了一个有别于大学课堂的社区。<sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup> 在一次采访中，希夫曼将该频道描述为产生收入的小生意；他说自己每周花一天时间在频道上，并聘请了一名视频编辑，后来又聘请了一名社区经理。<sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup> 在一次采访中，他描述通过广告将教程变现，根据是否需要视频用于课堂，他有时会撤下广告再恢复；采访报道称，他当时支付两位合作者报酬，到采访刊出时已增至四位。<sup>[9](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-part-2-c8fc506c2fbb)</sup> 他说，他将Processing基金会的工作视为研究实践的一部分，不额外获得收入，而YouTube收入使这项工作对他而言更可持续。<sup>[9](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-part-2-c8fc506c2fbb)</sup>

**形式。** 他的编程挑战视频理想时长在10分钟到1小时之间，最佳时长为20到30分钟。<sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup>

## 著作与写作

《The Nature of Code》首次出版于2012年，最初通过创意编程框架Processing，在软件中探索大自然不可预测的演化与涌现特性。<sup>[3](https://natureofcode.com/introduction/)</sup> 希夫曼自出版了该书，并明确说明了原因。在Elsevier的网站上，《Learning Processing》电子书售价53.95美元，他从中获得5%的版税，即每本2.70美元。而将《The Nature of Code》的数字版以10美元出售，使读者的成本降低超过八成，同时支付给他的钱却增加了两倍。<sup>[5](http://feiramoderna.net/download/pos-positivo/SHIFFMAN-Daniel/Daniel-Shiffman_Nature-of-code.pdf)</sup> 原始文本、代码和插图以知识共享署名-非商业性使用许可发布，托管在GitHub上，一次性数字购买包含终身免费升级。<sup>[5](http://feiramoderna.net/download/pos-positivo/SHIFFMAN-Daniel/Daniel-Shiffman_Nature-of-code.pdf)</sup> 2012年10月，Create Digital Music指出，整本书可以在线免费阅读，用Processing.js绘制插图，而此前多年读者一直从希夫曼的纽约大学课程博客中抄笔记。<sup>[12](https://cdm.link/2012/10/the-nature-of-code-book-illustrates-coding-design-secrets-and-power-of-self-publishing/)</sup>

**2024年版。** 基于JavaScript的《The Nature of Code》版本于2024年秋季推出，距原版已过去十多年。<sup>[13](https://tisch.nyu.edu/itp/news/fall-2024/daniel-shiffman--itp-faculty-member--launches-new-book---the-nat)</sup> 新版本使用p5.js，但仍侧重于通过模拟理解自然系统。<sup>[14](https://flowingdata.com/2024/04/29/the-nature-of-code-refreshed/)</sup> 该书由No Starch Press出版，ISBN为9781718503700，通过[Penguin Random House](https://www.edgepedia.org/zh/penguin-random-house)发行，营销围绕构建鸟类群飞模式和萤火虫同步闪烁等现象的模拟展开。<sup>[8](https://nostarch.com/nature-code)</sup><sup> • </sup><sup>[6](https://www.penguinrandomhouse.com/books/739590/the-nature-of-code-by-daniel-shiffman/)</sup> 该书以一个开放仓库（noc-book-2）的形式开发，并在编码列车网站上设有展示区，读者可提交对书中内容和练习的创意解读。<sup>[15](https://github.com/nature-of-code/noc-book-2)</sup> 在撰写新版时，希夫曼已完成配套视频教程系列第5章的大约一半。<sup>[3](https://natureofcode.com/introduction/)</sup>

## 在Processing、p5.js和ml5中的角色

希夫曼是Processing基金会的联合创始人，并担任其董事会成员。<sup>[1](https://itp.nyu.edu/itp/daniel-t-shiffman/)</sup><sup> • </sup><sup>[2](https://thecodingtrain.com/about)</sup> 他将自己在Processing、p5.js以及Processing基金会上的开源工作定位为其纽约大学工作的研究和专业实践部分。<sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup> p5.js——他2024年版著作所围绕的库——是用JavaScript重新构想Processing而成的免费开源库，在浏览器中运行，无需安装。<sup>[3](https://natureofcode.com/introduction/)</sup>

**ml5.js。** 他的11集机器学习教程系列也催生了一个库——ml5.js，这是围绕TensorFlow.js的封装，无需承担直接使用TensorFlow.js所需的底层工作即可访问其大部分功能。它在ITP开发，主要由ITP的学生和研究人员完成，始于希夫曼申请获得的谷歌教师研究奖资助。它与p5.js并列为兄弟项目，并非Processing基金会的正式组成部分。<sup>[9](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-part-2-c8fc506c2fbb)</sup>

他的GitHub账号托管了其著作和Processing移植版的示例仓库，包括LearningProcessing示例（605颗星）、LearningProcessing的p5.js移植版（272颗星）、OpenKinect-for-Processing（545颗星）、Face-It（299颗星）、Most-Pixels-Ever-Processing（288颗星）和Box2D-for-Processing（287颗星）。<sup>[10](https://github.com/shiffman)</sup>

## 在纽约大学的教学

希夫曼自2004年起在ITP/IMA教授“计算媒体导论”；该课程的历史可追溯到1987年，由[迈克·米尔斯](https://www.edgepedia.org/zh/mike-mills)和约翰·亨利·汤普森开创。他自2008年起在那里教授“自然之代码”课程。<sup>[3](https://natureofcode.com/introduction/)</sup> 2025年秋季，他在布鲁克林校区教授ITPG-GT 2536，这是一门模拟自然系统的课程，涵盖物理模拟、三角学、自组织、遗传算法和神经网络，示例用JavaScript和p5.js演示；该课程也通过YouTube视频系列和natureofcode.com/book上的教材在线提供。<sup>[16](https://itp.nyu.edu/exchange/interchange/instructors/Shiffman-Daniel/)</sup>

他所表述的教学理念核心是成就他人：他说，看到别人用他所教或开发的东西创作作品，比他自己做项目更让他享受。<sup>[17](https://blog.sfpc.io/post/147241747786/talking-about-pedagogy-with-daniel-shiffman)</sup> 2024年春季，Google Lab Sessions与他合作，探索Gemini API，开发一个在学生编程时提供支持的AI工具，为p5.js网页编辑器开发了一个实验性Chrome扩展。<sup>[18](https://tisch.nyu.edu/itp/news/spring-2024/exploring-the-future-of-learning--google-lab-sessions-with-dan-s.html)</sup>

## 数字一览

该频道有记录的受众增长从Processing基金会采访时的889,000订阅者，到No Starch Press 2024年版页面上所称的“近200万订阅者”。<sup>[7](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)</sup><sup> • </sup><sup>[8](https://nostarch.com/nature-code)</sup> 在GitHub上，他的账号显示19,515名关注者和174个公开仓库，于2010年1月28日加入。<sup>[10](https://github.com/shiffman)</sup>

## References

1. [Daniel T. Shiffman, ITP faculty profile](https://itp.nyu.edu/itp/daniel-t-shiffman/)
2. [About, The Coding Train](https://thecodingtrain.com/about)
3. [Introduction, The Nature of Code (2024 edition)](https://natureofcode.com/introduction/)
4. [Interview with Casey Reas and Ben Fry, Rhizome (2009)](https://rhizome.org/editorial/2009/sep/23/interview-with-casey-reas-and-ben-fry/)
5. [Daniel Shiffman, The Nature of Code (2012 self-published full text)](http://feiramoderna.net/download/pos-positivo/SHIFFMAN-Daniel/Daniel-Shiffman_Nature-of-code.pdf)
6. [The Nature of Code by Daniel Shiffman, Penguin Random House](https://www.penguinrandomhouse.com/books/739590/the-nature-of-code-by-daniel-shiffman/)
7. [createCanvas: Interview with Dan Shiffman, Processing Foundation](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-eb22043882e6)
8. [The Nature of Code, No Starch Press](https://nostarch.com/nature-code)
9. [createCanvas: Interview with Dan Shiffman, part 2, Processing Foundation](https://medium.com/processing-foundation/createcanvas-interview-with-dan-shiffman-part-2-c8fc506c2fbb)
10. [Daniel Shiffman, GitHub profile](https://github.com/shiffman)
11. [Creative coding and visual portfolios for CS1, SIGCSE 2012](https://dlnext.acm.org/doi/10.1145/2157136.2157214)
12. [The Nature of Code Book Illustrates Coding Design Secrets, Create Digital Music (2012)](https://cdm.link/2012/10/the-nature-of-code-book-illustrates-coding-design-secrets-and-power-of-self-publishing/)
13. [Daniel Shiffman, ITP Faculty Member, Launches New Book, NYU Tisch (fall 2024)](https://tisch.nyu.edu/itp/news/fall-2024/daniel-shiffman--itp-faculty-member--launches-new-book---the-nat)
14. [The Nature of Code, refreshed, FlowingData (April 29, 2024)](https://flowingdata.com/2024/04/29/the-nature-of-code-refreshed/)
15. [nature-of-code/noc-book-2, GitHub](https://github.com/nature-of-code/noc-book-2)
16. [Shiffman, Daniel, IMA Interchange course listing](https://itp.nyu.edu/exchange/interchange/instructors/Shiffman-Daniel/)
17. [Talking about pedagogy with Daniel Shiffman, School for Poetic Computation](https://blog.sfpc.io/post/147241747786/talking-about-pedagogy-with-daniel-shiffman)
18. [Exploring the Future of Learning: Google Lab Sessions with Dan Shiffman, NYU Tisch (spring 2024)](https://tisch.nyu.edu/itp/news/spring-2024/exploring-the-future-of-learning--google-lab-sessions-with-dan-s.html)

---
*Initially written Oct 10, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 工程师与计算机科学家

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/daniel-shiffman

English original: https://www.edgepedia.org/daniel-shiffman
