User loginNavigation |
archivesAn Eloquent BookI recently came across an on-line JavaScript book titled "Eloquent JavaScript," with the subtitle of "An opinionated guide to programming," by Marijn Haverbeke. I was interested in learning about the language to improve some node.js programs I had written. I was hoping to find a book which teaches the language as a whole, rather than as a collection of scripts a designer might use to make his or her web page look fancy. I was disappointed to read this book described by the author as targeted for the "beginning programmer." Usually this means a long paragraphs with tedious motivations leading to the inevitable "hello world" program. From there books continue to introduce basic arithmetic, variables, for/while loops, input/output, etc. All of this is necessary for beginners, but usually skipped by experienced programmers who just need to know how this language differs from the languages they already know. Luckily, "Eloquent JavaScript" is one of the few books that teaches beginners the various constructs they need to assemble their programs, but also teaches them (and reminds experts of) how to harness the immense, almost magical, power of programs to turn ideas abstract thoughts in our head to objects which can be shared and executed with perfect fidelity. In a few introductory paragraphs, Marijn describes the evolution of programming languages as such:
...
...
...
...
The chapter on functional programming uses a metaphor of recipes to describes how a naive attempt to write a non-trivial program can turn into a "grandmother's tale," when what is actually required is a concise, terse description. The chapter on "searching" shows a maps and challenges readers to describes how to find the shortest path between two locations. It should be no surprise to any of us how important such descriptions are to introduce some fundamental algorithms to students (many whom will not realize they are now wandering into computer science, not just software engineering). LTUers are well aware of Structure and Interpretation of Computer Programs, series of books which include The Little Schemer, and How to Design Programs. I believe I have mentioned how well Scala By Example[PDF] is written. Elequent JavaScript is among the books that should not only be recommended to new programmers, but also referenced by those who are planning on writing books of their own. |
Browse archivesActive forum topics |
Recent comments
22 weeks 4 days ago
22 weeks 4 days ago
22 weeks 4 days ago
44 weeks 5 days ago
49 weeks 11 hours ago
50 weeks 4 days ago
50 weeks 4 days ago
1 year 1 week ago
1 year 5 weeks ago
1 year 5 weeks ago