OOP: The Good Parts, JSMag

Alex R. Young





functional language oop

OOP: The Good Parts, JSMag

Posted by Alex R. Young on .

functional language oop

OOP: The Good Parts, JSMag

Posted by Alex R. Young on .

OOP: The Good Parts

I just finished reading OOP The Good Parts: Message Passing, Duck
Typing, Object Composition, and not
by Nick Fitzgerald.
Obvious references to Douglas Crockford's
The Good

aside, the article builds on some interesting points by authors like
Raganwald that will resonate with many DailyJS readers:

What if code re-use has nothing to do with inheritance, but uses composition, delegation, even old-fashioned helper objects or any technique the programmer deems fit?

Fitzgerald defines a method called quacksLike that he uses
to formalize object capability detection and Object.combine
for object composition.

These ideas aren't new, but there's an interesting code example of a DOM
library that uses these methods. It'll be particularly interesting to
fans of Let's Make a Framework.


While we're on this topic,
functools (documentation) by E. Azer Ko├žulu is a library for functional programming. He's tested it with
Node, but he says:

Despite functools follows CommonJS specs, my actual aim is to improve the experience of DOM programming

It supports features like iterators, functional composition, currying,
and partial function application.

The author is also working on
Roka-Lisp, a lisp dialect written in JavaScript.


JSMag is a magazine all about JavaScript. The latest issue includes the following articles:

  • JavaScript Can't Do Math! - Rod Paddock
  • Sencha Touch - ExtJS and jQtouch - Shea Frederick
  • Worlds Collide - JavaScript and Flash Unite - Adrian Pomilio
  • Developing Web Applications for the iPad - Jason Gilmore
  • Helma Community - ExtJS Integration - Mike Schwartz
  • Community News - David Calhoun

The magazine's PDFs are DRM-free, so you can read them on any device
that supports PDF.