News for hackers. Stuff that matters.
Re:Simple JavaScript Inheritance with Backbone by jimmydo on Saturday March 19, 2011 @06:52PM (#2344968)
That was a really interesting talk--thanks for the link!

Something that initially confused me was that Eich's use of the term "prototypal" (a pattern for implementing class-based inheritance) was different from Douglas Crockford's use of it (an alternative to class-based inheritance - http://javascript.crockford.com/prototypal.html).

In case anyone else finds this useful, here's how I sorted it out:

- "class-based" & "prototype-based" inheritance (Crockford refers to them as "classical" & "prototypal" inheritance). Different styles of instantiating objects.

- "closure pattern" & "prototypal pattern" (aka "prototypal inheritance" in this context). Different techniques for implementing class-based inheritance.

There are no comments on this comment yet.