written by craig, 14 April 2011
- A good introduction to variable value types and control flow statements. Nothing too scary for programming novices.
- Functions. While many development books might keep this simple, Haverbeke delves into more advanced topics such as closures and recursion. I suspect it might be a little confusing for some, but they’re succinctly explained.
- Data structures such as arrays and object literals. An amusing example which extracts cat information from emails is provided.
- Functional programming. Stories such as the split-pea soup recipe and the semi-autobiographical “recluse writing a technical book” are used to explain concepts such as abstraction.
- Modularity. The author explains how modules can be used to separate code.
- Regular expressions. A solid and concise explanation is provided.
- Web programming crash course. The chapter provides a brief overview of browsers, forms and associated technologies. Leaving this toward the end of the book may seem odd, but it’s logical.
- The Document Object Model and
- Events are two areas which confuse the most skilled browser developers. The concepts are well covered and the author uses the new techniques to convert the terrarium code into a working version of Sokoban!
- HTTP requests are explained with reference to Ajax using both XML and JSON message formats.