53 points · by seancron · 16y ago · 29 comments
So my question is fellow HNers is do you have any suggestions for how I can get the most out of this book? Are there any concepts or sections that I should pay particular attention to? Are there resources that would help me understand it better? Thank you.
The two month time frame seems very optimistic unless SICP is one of your only responsibilities. It's my understanding that most semester courses that use/used the book usually never even get/got through the last chapter.
You might consider reading How to Design Programs (HtDP) as an alternative or supplement to SICP. The authors of HtDP have published a paper comparing the two works (mostly detailing the perceived shortcomings in SICP that motivated them to write HtDP in the first place). Read it here: http://www.ccs.neu.edu/scheme/pubs/jfp2004-fffk.pdf.
Good luck. :)
The exercises that are hard for you are exactly the exercises that you'll learn a lot from.
As you point out, it may still be useful to have that knowledge, and if you have the time and the mathematically-inclined brains, it may be a skill worth learning... but I feel that it shouldn't be required to successfully learn the concepts in SICP. SICP is hard enough as it is, no need to get sidetracked if you don't absolutely have to.
(I realize this comment may bring all the "programming is math" fans out of the woodwork, but so be it. :-)
Without knowing more about what you already do or already know, I can't advise paying particular attention to one thing or another, but simply to repeat - the benefit is in the exercises. The text reads clearly and simply, but the exercises are where you put in your part of the effort.
EDIT: corrected typos.
Note that common lisp comes with a lot of stuff built in, but to do the above I stuck to a minimal subset.
Following this, it was fun to read OnLisp[2].
My strategy when working through the book was to slowly chip away at it, sometimes non-sequentially, and let the ideas slowly stick. When I say, non-sequentially, I mean to say that I would look at all the chapters, think about my current knowledge base, and then try to attack as many chapters at once.
Many will disagree with this style of learning, and the initial confusion lasts longer than I'd like, but eventually, all the thoughts just suddenly click.
That said, SiCP was a totally different beast, where the knowledge had to be accumulated and used throughout the book.
I think the most efficient way, would be to read each chapter multiple times first, trying to get key ideas (not everything) to stick.
Then proceed on to the problems, but set a time limit for each problem. Seriously, this book is so huge that one will never get all the problems done (i haven't, but that's part of the plan). Go search for some answers to easier questions, tackle those of roughly the same level of difficulty, then move on to more difficult questions, never obsessing over the fact that you couldn't solve a problem.
Because many of the ideas are one step removed from "everyday programmer", investing heavily (you be the judge) in the problems alone won't be worth it.
The best thing that I did however, was to "leave some questions in the tank" and re-read chapters at fixed intervals (say on every Monday), and attempt problems that I previously needed assistance to solve.
Oftentimes, I realise that I managed to solve it far more efficiently and with much cleaner code (and am constantly surprised by the difference in code quality compared side by side). Rewriting code in a different language also helps (eg: I'm doing Project Euler in python and Common Lisp)
Finally, I think you'll enjoy the journey much more if you pace yourself and give it at least a year to work it's magic.
Don't skip exercises. All the meat is in the exercises. I think there's a bunch at the end of Chapter 2 that make you write a lot of verbose code, to teach you stuff that you probably already understand if you've done OOP. The ideas explained in that section have since got more than their fair share of popularity in the mainstream. Anyway--I skipped those. But many others I thought I'd skip, only to come back to them later and wish I'd done them the first time.
I think this is a great way to motivate readers and tackle leaps of understanding.
The course website is here: http://www.reddit.com/r/UniversityofReddit/comments/cktdq/cl...
Then I ordered the book, and during the month it took to arrive (back in the 80s), worked out the themes from the article in programs of my own. When the book came in, it was extremely instructive to compare with how I'd tried to flesh out their ideas -- for example, I'd come up with a scheme to express dataflow pipelines by hooking up coroutines in continuation-passing style, inspired by their CPS-coded pattern-matcher; then the lazy streams in the book were a revelation -- a beautiful solution to the same problem, as a data abstraction instead of a pattern of control. (And then it was interesting to see how you could refactor the different solutions into each other.)
I'm not going to tell you to go about it the same way, but there is a principle there: struggling with a problem yourself before seeing how the masters do it, you're much better prepped to learn from them (and eventually you'll find yourself getting somewhere they didn't). Feynman emphasized this point.
Anyway, book in hand, I worked straight through doing most of the exercises and also related problems that'd occur to me along the way -- anything that piqued my interest. Again, going off on your own tangents is not to be scorned. The concepts or sections to pay particular attention to are the ones that interest you, yourself.
I spent 2-3 months, I guess, taking up all my hacking time. It was totally worth it, though nowadays there's far more competition in easily-available worthwhile programming stuff to study. I've heard of some online study groups for SICP -- don't know if they're active.
I'll have to take a look at the Berkeley videos to see how they compare to the MIT videos. I am however going to use them more as a supplement to help me understand sections I'm having trouble with, rather than going through them systematically.
As far as the timeframe of two months, two months is not a deadline to finish and completely comprehend the book. I understand that can take years. Two months is actually how much completely free time where I can concentrate on it before I have before I head back to college where one of my courses is using SICP as the textbook for the semester. I won't, however, be able to devote my full concentration to SICP as I would like to during the school year because I'll have other work that I need to do.Wow, thanks everyone for the responses. It looks like the general consensus is that while reading the book is important, also do the exercises, in different languages if possible, as that's where you'll really start to understand the concepts.
Thanks for your help everyone!
Then, some months after that, I read it a second time but I did the exercise and read every section.
In SICP, the exercice aren't there to "only make sure you've understood". There are actually a lot of new content in the exercises.. I don't particularly like that because if you can't answer an exercise, well, there is no solution :p (Of course, you can browse the web, ask people, etc.)
Or sometime, it asks, eva-lua-tor thinks that, L. Hacker things that, who's right? So, you answer.. but how can you know you've got the right answer?
Anyway, this is a great book. In my opinion, the chapter based on the evaluator is the most important and the one that has the most impact on my day to day life.
http://curiousreef.com/class/structure-and-interpretation-of...
There's already a lot of work available that others have posted which is handy if you get stuck or want to see other ways of solving the problem.