

It shows that you can model class-style inheritance IS-A relationships using concatenation. You can do the same with delegate prototypes, too, which is what happens when you use `class…extends`.
But the example is not a good example of composition done right. You can drive off a cliff in any model car.
Hey Brad,
You advocate some great concepts and I’m always happy to see more people thinking about how to fix the problems our decade long misuse of the MVC pattern in frameworks such as Rails has caused.
However, while I couldn’t agree more with some of the approaches you mention and while I do agree…
Eric Elliott:
But you still have `new`, and somewhere, somebody is going to extend your MurderRobotDog via ordinary class inheritance, and your pretty design is…
Clever. Object composition via class factory composition.
But you still have `new`, and somewhere, somebody is going to extend your MurderRobotDog via ordinary class inheritance, and your pretty design is going to turn into a pile of twisted classes.
=)