Skip to content

About

My solutions to "How to Design Programs" 2nd Edition

Resources

Stars

62 stars

Watchers

3 watching

Forks

Repository files navigation

HtDP 2e Solutions

Spoiler Alert!

Here are my solutions for the exercises in "How to Design Programs 2nd Edition". HTDP is still the best method to learn basic programming for motivated people. It's also a great introduction to functional programming and Lispy languages.

The book: (https://htdp.org/)

I've completed Exercises 1-214 so far.

You owe it to yourself to work through your own solutions first before you look at mine. If for no other reason than my solutions being an examples of how not to do it, and it may corrupt your style. :-)

The design recipe us presented by Gregor Kiczales:

https://s3.amazonaws.com/edx-course-spdx-kiczales/HTC/Pages/design-recipes.html

https://courses.edx.org/courses/course-v1:UBCx+HtC1x+2T2017/77860a93562d40bda45e452ea064998b/#HtDF

NOTE: As of January 2021 (now 2022), Im refactoring this repository for two main reasons:

1 I followed a beta version of the book, so exercises and examples have chnaged. So, I'm reviewing my solutions and examples.

2 I'm refactoring my code repository to make it more organized and to have information easier to find. Book examples and notes will be in book.rkt files under their respective section directories. Intermezzos will go under their own directory I'll put each exercise in it's own file. I'm also going to use text format files Instead of DrRacket specific file format.

3 I'm switching to "Determine language from source instead of selecting language from menu as in the book.

NOTE: Don't try to use Emacs to do the exercises, even with Greg Hundershott's excellent racket-mode for Emacs, there is just too much impedance mismatch with editing Beginning Student language. Just use DrRacket, it's not too bad.

I just may complete the rest of the exercises given time.

Have fun.

About

My solutions to "How to Design Programs" 2nd Edition

Resources

Stars

62 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages