228 points · by olalonde · 11y ago · 39 comments
(1) The book is not finished yet. But it will appear with MIT Press, and I expect it to appear over the next year and a half or so.
(2) Realm is best read after HtDP [1e or 2e] or some other course on plain programming (not necessarily program design). It teaches (simple) programming in Racket.
(3) HtDP [2e] does NOT teach programming in Racket. It uses several teaching languages, each matching a stage in the convex hull of the design recipes (tactics) of a certain part of the book. HtDP's design tactics do away with the usual "everything is a Turing machine so learn by coping me" approach.
I wish more people were as excited by Racket as I am.
The "comments" are really an introduction to type systems, along with general good practice.
The ability to describe a function by purely it's signature without the presence of mutation makes reasoning through hard problems more straightforward.
The book is used best in conjuction with Coursera's https://www.coursera.org/course/programdesign
Realm of Racket is designed more or less as a self paced tutorial. It is in the tradition of Land of Lisp. It is targeted at a broader and more general audience.
How to Design Programs starts at the very beginning and has a lot more principled of an approach, focusing on FP and programming as calculation of values. It's by far my favourite introductory programming text.
That contrasts directly with my opinion after 20-years of development experience working on applications across a number of industries and in teams of 1 to 100. Not 'all' programmers can be or are good, and definitely this is not true for 'all people' in general.
After such a start, why then should I read further? I'm genuinely interested to know the answer.
Well, except that seems to be covered better by the preface to the firat edition.
They practice.
Your idea that some people "have it" and some don't is just not true with almost anything in reality. Prodigies are extremely rare, and everyone else who "has it" got there by practicing in their field. Anybody (assuming no other learning disabilities) can become a programmer, and a good one at that, if they honestly believe they can do it, study the foundational skills they need for it, then practice and practice.
Try to remember how you became a programmer - chances are you started learning at an early age - you already had the foundational skills in language, math and science etc, because you were competent in school, and you probably spent a large part of your youth engaged in programming. You're no prodigy, and you didn't have it to begin with. Instead of saying "I can't do it", your probably the type to ask "how can I do it?".
The "bad", or non-programmers are more likely to be the ones who say "I can't do it", "it's too complicated for me", etc. You can crush the chance of these people ever being competent by simply agreeing with them that they can't - because if they don't have the belief that they can, they won't bother spending hours learning the foundational skills they need, or the thousands of hours practicing which would turn them into good programmers.
From my teaching experience, the learner's belief is by far the most important factor in their learning. Those who have no belief will simply not put any effort into learning, and will never progress. The author obviously understands this too, and invites the reader to first believe they can do it, so that they continue reading.
Try to write some educational material for programming, and introduce it by saying "You probably won't ever get good at this, you suck, why are you still reading?", and see how many engaged readers you get.
Because the stated assumptions aren't always reflective of the actual design principles of a product. HTDP is a solid course that in practice does not compromise on quality for the sake of popularity.
That everyone could (and should) learn to program is also a popular thing to say these days. This generally means that you can discount the importance of any one person saying it to that person's beliefs.
The statement at issue very much is central to the actual design principles of HtDP.
LE: Thanks.
... and Lisp :(