3 ms·
I am revisiting SICP at the moment, because a friend uses it to learn programming. But I have to say, I am not nearly as impressed with the book as I used to b
by eru 14y ago
I am revisiting SICP at the moment, because a friend uses it to learn programming. But I have to say, I am not nearly as impressed with the book as I used to be. Wadler's critique "Why calculating is better than scheming" (http://www.cs.kent.ac.uk/people/staff/dat/miranda/wadler87.pdf http://www.cs.kent.ac.uk/people/staff/dat/miranda/wadler87.p...) fully applies, and the book can be rather confused and ad-hoc in some places, e.g. section 1.3. A stronger focus on data structures would have been useful, instead of ad hoc recursion schemes, like version of `accumulate', `sum' and `product' they make you write in the exercises in that section, which are essentially unfoldr and foldr rolled into one---and would be better written as a composition of those functions.
`How to design programmes' (http://www.htdp.org/ http://www.htdp.org/) leaves a better impression as a beginners' book for me.
If you can already programme then "Programming Languages: Application and Interpretation" (http://cs.brown.edu/courses/cs173/2012/book/ http://cs.brown.edu/courses/cs173/2012/book/) is a great follow-up.
- spitfire 14y agoIf you're critiquing the book in such a lucid manner, it sounds like you got good value from it.
- eru 14y agoI don't deny that. I liked it quite a lot when I read it in my teens, and learned a lot. But revisiting the book in detail has brushed off some of the nostalgia. It is a product of its times.
- dasil003 14y agoFair enough, but try picking up any other computer science book from that era and I bet there isn't a single one that has aged as well.
- mzs 14y agoTAOCP Knuth C Programming Language by Kernighan and Ritchie The Practice of Programming Kernighan and Pike
- eru 14y agoI still like K&R's C book, and have used it to teach C to a friend last year. The Practice of Programming shows more signs of its age. It is a good read, but it could do with an update.
- panic 14y agoThinking Forth was published the same year and is still very relevant. http://www.amazon.com/Thinking-Forth-Leo-Brodie/dp/0976458705 http://www.amazon.com/Thinking-Forth-Leo-Brodie/dp/097645870...
- tjr 14y agoWadler's critique seems mostly rooted in Miranda vs. Lisp, rather than critiquing the general contents of the book. Is there another book that is like SICP in overall thematic content that uses Miranda? (Or I guess Haskell might be a more likely choice today?)
- eru 14y agoI found How to Design Programmes very nice, and it uses Racket (which is a dialect of Scheme). HtDP was at least partially created as a reaction to the perceived shortcomings of SICP, including Wadler's critique. You can have a look for yourself at htdp.org. It's early focus on graphics and interactivity should jive well with people yearning back to the days of the C64 or ZX or BBC Micro. For the more advanced reader "Programming Languages: Application and Interpretation" has a similar focus like SICP on the workings of programming languages---not for an accident they both share `interpration' in the name. Read the book at http://cs.brown.edu/courses/cs173/2012/book/ http://cs.brown.edu/courses/cs173/2012/book/ I have also been impressed with Learn you a Haskell for Great Good (http://learnyouahaskell.com/ http://learnyouahaskell.com/), but it is not very much like SICP.
- nnq 14y agoThinking on "Why calculating is better than scheming" vs SICP I realize that there is an axis where most programmer's ways of thinking can be placed, with 2 extremes: - the mathematician-programmers: the thinking in terms of "what is" extreme, or mathematical thinking inspired programming: people closer to this like to think in terms of types and usually dislike dynamic languages, they also like to be able to properly reason about all aspects of a program, to have defined "states" they can think about. These people tend to like MLs, Haskell, OCaml, F#. The "mathematical beauty of perfect code" is their ideal and favorite metaphor. And I think they are right that teaching a Lisp to a beginner pushes ones mind away from "what is" oriented programming. - the Schemers: the thinking in terms of "what transformations to apply to something (it doesn't matter what "something" actually "is") to get something else or somewhere else" programmer: these people like to be able to transform everything, including code itself, they like homoiconicity or macros in general, they prefer thinking in terms of "how to compose/cahin transofrmations" instead of types, they tend either no know or not value category theory too much and they are ok with seeing code as an "organic entity" that can't always be reasoned about. These people tend to like Lisps, Smalltalk and dynamic languages. The "programming as magick", in the sense of "controlling the spirits (processes) inside computers" is their favorite metaphor. They also like to maintain a playful mood and their "it's ok that paying customers get shafted every now and then" may have had a reason for businesses' dislike for "schemer" types and "schemer" realted technologies. As an offside paradox, some "schemers" tend to also like OOP, though they understand it should not be overused (I consider Alan Kay, usually mentiones as the father of OOP to be a "schemer"). I think that exposing a young learner to Lisp pushes one mind towards this direction, and this is why I love SICP. If you are a competent engineer you surely have a serious amount of math knowledge, so you can easily switch your mind to what-is/math mode and see the mathematical beauty when there is one to be seen, but most "mathematician-programmers" never seem to be able to love this "ruleless organic beauty" of the "schemer way". I consider myself a "schemer" and I am biased to this side, but I understand and appreciate the value and arguments of the other - I'd rather fly in a plane with the control systems coded by a "mathematician-programmer" than by a "schemer" like me :)
- qu4z-2 14y agoInteresting. I prefer the "programming as magick" metaphor, and would say I have a playful mood regarding programming, but I still like static typing. Having said that, I love higher-order functions and macros as well. Defining it as a continuum feels like I should be either on one end, or somewhere inbetween on the various traits, but I have rather strong attachment to some traits from each side. I think you're right that a lot of the traits you mention tend to be clustered together in programmers though.