I’ll say it.
The Rhino Book
(1), and its ability to teach me something about programming.
I haven’t brought some of the newer js books like the good parts
, or ninja
Here’s some of them. Maybe it’ll help someone else out. I’ll keep ’em short.
There are already a number of scope tutorials on the web. I won’t repeat what they say, but what helped was understanding that This changes depending on who calls the function. Scope and context of this can be controlled on a function by function basis
Prototype-based Object Orientation
That you can use to build what you need. At the core, there are functions, arrays, and objects. All three of them have properties, thought of as ‘slots’ you can put variables, functions, arrays, and objects in. What makes it more like lisp is that you can treat functions as data you can pass around, as first class citizens
, or Closure
should really be parts of the core language. Without each, map, and reduce, I find having to write for loops to be a pain. If people from multiple libraries are implementing the same basic things, that’s a good indication it’s a weakness of the language. I’ll use for loops when I need to optimize something later.
. It’s like it doesn’t want to admit it’s a functional language (albeit unpure). It also has no method_missing
call. Firefox has implemented a __noSuchMethod__ call
, but it’s non-standard. I haven’t found a way to replicate it with its current features yet either.
(1) When I say doesn’t have a future, it’ll still be around, but like the way radio is still around as a medium when TV and internet came around.