views:

720

answers:

4

JavaScript is a lightweight and powerful language, but it's often misunderstood and hard to learn (especially about its object oriented programming). Here are what I found:

Books

Videos

On Stack Overflow

Others

What are other good materials (blogs, screencasts and books) to learn JavaScript OOP? The topics can be anything, but let's not include browsers, AJAX and libraries for now.

Also how did you learn the functional programming, closure, object, inheritance and design patterns in JavaScript? Personally I would like to see more code examples because some of the books I mentioned above keep the example minimal.

+2  A: 

In the same vein as The Good Parts, Douglas Crockford's website has many good articles on JavaScript and OOP, such as Prototypal Inheritance, Classical Inheritance in JavaScript, etc.

Raul Agrait
+1  A: 

You can see great code examples of Javascript in mainstream libraries like jQuery. I've learned a lot just reading it's source code. There's nothing better than reading sources that are working in millions of websites and are concerned about best practices.

GmonC
jQuery is more functional than OOP, no? But there are good OOP frameworks to look at (Ext, Dojo, YUI) and I would also recommend doing so. No one better to learn from than those actually making it work in today's browsers.
bmoeskau
There are many libraries I know. Is it possible to tell which library prefers which strategy (i.e., Crockford defines three a) Psudoclassical, Protypal and Functional OOP)?
TK
+1  A: 

In addition to the previous references to Crockford's work, I recommend you read this perspective on the contrast of Functional vs. Classical inheritance patterns in JS:

Inheritance Patterns in JavaScript by Michael Bolin

Geoff
+1  A: 

The recent Crockford on JavaScript video talks are worth watching - Act III: Function the Ultimate covers OOP in JavaScript.

Colonel Sponsz