Newb question....About "How to Design Programs" book

46 views
Skip to first unread message

Michael Burke

unread,
Nov 24, 2019, 9:28:55 PM11/24/19
to Racket Users
I'm sure this has been asked and answered, but are their any current descriptions of how people are adjusting to the book, "How to Design Programs"? I ran into a problem on the first little exercise that required me to use a teachpack. Surely someone has a lit of work-around for this?

Thanks,

Mike

Sam Tobin-Hochstadt

unread,
Nov 24, 2019, 9:35:18 PM11/24/19
to Michael Burke, Racket Users
Which edition of the book are you using? And can you point to where in
the book you ran into trouble, and what happened? The full book is
online, so a link to the section would be very helpful.

Sam
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/d90212d3-b00b-43bb-9102-582df33461fa%40googlegroups.com.

Michael Burke

unread,
Nov 24, 2019, 10:47:41 PM11/24/19
to Racket Users
Thank you, Sam-

I'm apparently reading a pdf version published in 2002 (Copyright 2001 Third Printing). Of course, it still refers to DrScheme and Scheme. Is there a newer one?

I'm at Exercise 2.2.1, converting Fahrenheit to Celsius. The exercise calls for installing the teachpack "convert.ss" but that isn't in the list of teachpacks I see listed in DrRacket. I tried to install convert.rkt, but I have no idea if it actually installed or not because I didn't get any feedback telling me it was successful. I presumed that I should use the "Beginner" student version of Racket, but that isn't clear either. So, when I go to run my routine I get a "function is not defined" error, and I'm a little confused about what I missed.

Huh! I just checked my version against the online version, and they are NOT the same! I prefer reading PDFs on my Android tablet, but I think I will need to see what happens when I follow the web version.

Thank you for your help,

Mike



On Sunday, November 24, 2019 at 8:35:18 PM UTC-6, Sam Tobin-Hochstadt wrote:
Which edition of the book are you using? And can you point to where in
the book you ran into trouble, and what happened? The full book is
online, so a link to the section would be very helpful.

Sam

On Sun, Nov 24, 2019 at 9:28 PM Michael Burke <meb...@stmattbtt.com> wrote:
>
> I'm sure this has been asked and answered, but are their any current descriptions of how people are adjusting to the book, "How to Design Programs"? I ran into a problem on the first little exercise that required me to use a teachpack. Surely someone has a lit of work-around for this?
>
> Thanks,
>
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to racket...@googlegroups.com.

Sam Tobin-Hochstadt

unread,
Nov 24, 2019, 10:56:00 PM11/24/19
to Michael Burke, Racket Users
First, I strongly recommend the second edition, which is what you get
at htdp.org. In that case, you'll do many things differently with
respect to teachpacks, but the ideas will be very similar.

Second, when you choose "Add Teachpack" from the "Language" menu in
DrRacket, you should see three panes. The left one, labeled "HtDP" is
what you want for the edition you've been using, and indeed you want
to choose "convert.rkt".

After you add that teachpack, when you next hit "Run" the top of the
interactions window should list the installed teachpacks, with a line
like:

"Teachpack: convert.rkt"

Do you see that?

Sam
> To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/eafb1e0d-7f04-4c4e-bf7a-a4cd3faf8eda%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages