Cover of Structure and Interpretation of Computer Programs: JavaScript Edition

Structure and Interpretation of Computer Programs: JavaScript Edition

by Harold Abelson

4.36(28 ratings)

A new version of the classic and widely used text adapted for the JavaScript programming language.Since the publication of its first edition in 1984 and its second edition in …

Reviews

Alper Cugun@alper.nl

The writing was unfortunately not updated and is still very unclear in lots of areas.<br/><br/>The code was converted to Javascript and the authors seem to only have the ternary operator to their disposal. No idea why. Maybe they think this makes their conversion more lispy?<br/><br/>One of many examples:<br/><pre><br/>function pascal_triangle(row, index) {<br/> return index > row<br/> ? false<br/> : index === 1 || index===row<br/> ? 1<br/> : pascal_triangle(row - 1, index - 1)<br/> +<br/> pascal_triangle(row - 1, index);<br/>}<br/></pre><br/><br/>This is preposterously bad programming.