Wednesday, 28 October 2009

Functional object-oriented programming in Javascript

I have written a tutorial on the best and easiest way to do object-oriented programming in javascript. It is the method described as "functional" by Douglas Crockford in "Javascript the good parts", the chapter on inheritance. All deep thinking was done by Crockford, the only smart thing I have done is to understand to appreciate the ideas. And I have made a new example, and possibly some new arguments for the method. What is funny is that I like this method but not really what Crockford points out as the killer argument for it (real privacy).

Here it is, text, code and demo.

No comments:

Post a Comment