Sep 27
aside
Discuss why this is a standard part of Javascript
$ node
> 'a' in {a:1, b:2} // this works
true
> 'a' in ['a', 'b', 'c'] // this doesn't.
false
What's going on?
// Does this help clear things up ?
> for (i in ['a', 'b', 'c']){ console.log(i) }
Be clear about the differences in principle between lists and js objects (also known as "dictionaries" or "associative arrays" or "hashes" in other languages) and why this behavior makes some sense.
Also mention the .indexOf function and underscore.js additions which make these things simpler.
jQuery, AJAX, and all that
Talk about common javascript libraries, particularly jQuery.
- Point out how easy it is to do an AJAX query.
- Mention what a "callback" is, that programming paradigm, and how it relates to closures.
(... more notes coming ... maybe ? )
jQuery - making working with the DOM easier.
jQuery UI - user interface bell's and whistles
underscore.js - language convience functions (array, object, functional programming)
Raphaƫl - SVG vector graphics in canvas tags
Processing - data visualizations and visual art
... and many others.