How to Design Programs

How to Design Programs
AuthorMatthias Felleisen, Robert Bruce Findler, Matthew Flatt, Shriram Krishnamurthi
SubjectComputer programming
GenreTextbook
PublisherMIT Press
Publication dateFebruary 12, 2001
Publication placeUnited States
Media typeprint
Pages720
ISBN0-262-06218-6
LC ClassQA76.6 .H697 2001
Websitehtdp.org

How to Design Programs (HtDP) is a textbook by Matthias Felleisen, Robert Bruce Findler, Matthew Flatt, and Shriram Krishnamurthi on the systematic design of computer programs. MIT Press published the first edition in 2001 and the second edition in 2018. In addition to the for-purchase paperback, it is also freely available online.

The book is the first one to focus on the systematic design of code as opposed to the syntax of a currently popular programming language. Its key concept is that of a "design recipe", a six-step process for creating programs from a problem statement in a step-by-step fashion. While the book was originally used along with the education project TeachScheme! (renamed ProgramByDesign), it has been adopted at colleges and universities for teaching program design principles, including UBC's popular on-line course.

In order to support this novel approach, HtDP comes with not just one but a series of (five) beginner programming languages and a suitable, novice-friendly IDE.