What do you think?
Rate this book
640 pages, Paperback
Published April 12, 2022
function pascal_triangle(row, index) {
return index > row
? false
: index === 1 || index===row
? 1
: pascal_triangle(row - 1, index - 1)
+
pascal_triangle(row - 1, index);
}
This book is dedicated, in respect and admiration, to the spirit that lives in the computer.Now, perhaps it is narrow-minded of me, but I am of the opinion that a book so dedicated and so titled ought to have something to do with real computers. My main problem with SICP (AKA "The Wizard Book") is that it doesn't. OK, that is unfair, but only slightly. I will explain.
The book covers just a small fraction of JavaScript, so a reader would be ill-advised to use it to learn the language. For example, the notion of a JavaScript object—considered one of its fundamental ingredients by any measure—is not even mentioned!Thus in chapter 2 we are introduced to data object pair, which is -- let us not play dumb -- a Scheme CONS. The main value of the JS version is that it is available on the web from Source Academy, with runnable versions of all code and exercises embedded.
It was straightforward to translate the programs of chapters 1–3 to JavaScript by adding libraries that mirror Scheme primitives