Lurker News
Until now I've read:

- The Healthy Programmer
- Clean Code
- Test-Driven Development by Example
What should I add to my library?

Comments (337) 132 threads

Show all comments

Showing thread 4 of 132

d0m5 replies#
Structure and Interpretation of Computer Program (it's written in scheme but it's mostly for convenience and its lack of syntax).

Definitely the best book I've read on programming.

chii5 replies#
I'd find it quite hard to apply lessons from SCIP using java or c...
yomly1 reply#
What were your main takeaways from SICP?

While it certainly espouses a functional style, I found the greatest lesssons to be higher level, focusing on abstraction.
Though I have limited knowledge of C and Java so would be keen to hear your elaborated thoughts on this.

chii4 replies#
when you start to get to the parts about abstracting a circut, and making it streamy/lazy, you'd find that the impl details of a non-lazy language can make it more difficult than it needs to be.

Also, as a beginner, you don't want both the difficulties of contepts _and_ the difficulties of language to combine to stop you from learning as effectively.

Continue this thread — 4 replies

fsloth#
"I'd find it quite hard to apply lessons from SCIP using java or c"

IMO, you're supposed to write your own Scheme to reap full benefits from SICP.
The book contains a recipe for an interpreter that can be transferred to any other language. Chapter 5.4 : The explicit-control evaluator[0].
Strangely this fact is not advertised that much, I find it to be one of the coollest features of the book.
The implementation is not a direct syntax translation - one needs to figure out how to implement the base susbstrate and how to handle e.g. tokenization, but well rounded software engineer should have some model in ones head how to manage these (so if there are missing pieces this is a good opportunity to brush on those).
[0] https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-34.htm...

jerf2 replies#
These are indications of the weakness of Java and C, not SICP.

I do not mean this as empty snark; it is something you can see across the board in programming language evolution. It is virtually impossible to propose a new general-purpose programming language today that does not have closure support, which is the biggest thing you're finding missing from C and Java to use the techniques in SICP. (It is not the only thing, but it is the biggest thing.) You'll note Java is going to bolt them on soon, or recently bolted them on, but it'll be another decade before Java is using them fluently either way.
I've often recommend SICP to self-taught programmers; it is not a complete substitute for a computer science education, but it is a concentrated dose of the stuff you're probably missing out on. Expect it to be the work of some months to work through it. However, in the end, a self-taught programmer who has also worked through SICP systematically and carefully is probably a better programmer than 80% of the modern computer science graduates nowadays. (If you want to avoid that fate, oh ye who are still in school, take the freaking compilers course at the very least. Do your peers complain that it is hard? Then maybe it is a good one.)

pvg4 replies#
They're indications the book is also not 'language-agnostic', for all of its merits. The language is there for pedagogic purpose.

Continue this thread — 4 replies

jcadam#
The "Compiler Design" course at my university was the hardest CS course I've ever taken -- and it was generally taken your very last semester (and was infamous for being a common cause of many senior CS students not graduating on time).

Had it been optional, I would have been sorely tempted to skip it. But, taking it was probably good for me in the long run :)

Pitarou#
After SICP and a little study of functional programming, I started learning about design patterns, and my immediate reaction was, “What’s all the fuss about? I mean ... c’mon ... how else would you solve that problem?”

It took me a while to understand that, if you’ve been raised on Java or C, these things are not obvious at all.

evbots#
Second this. I'm making my way through the book now. I'm impressed by how well it articulates concepts from the ground-up.
zerr3 replies#
And original MIT video lectures (for HP employees) are must watch. The mood/feel they have, impossible to receive from the book alone.
Chaebixi1 reply#
> And original MIT video lectures (for HP employees) are must watch. The mood/feel they have, impossible to receive from the book alone.

Link?

gm-conspiracy1 reply#
Link, please?
suyash#
Plus 1
eru#
I re-read SICP recently, because I was teaching a friend.

I had very rose-tinted nostalgic memories. They did not hold up.
"How to Design Programmes" is a much better book. (But made for rank beginners.) And for the more advanced, "Types and Programming Languages".
See "Why Calculating is better than Scheming" (https://www.cs.kent.ac.uk/people/staff/dat/miranda/wadler87....) for a critique.
Don't get me wrong, SICP is still a good book to have read. Just no longer my favourite.