Nooku Guides

Composition

We talk a little bit about the Favor Composition over Inheritance design principle a little in the Component Architecture section. It really is at the heart of everything that Nooku does, and is the principle reason for its flexibility, so it deserves a little more attention in our guides.

This principle lets you write less code and often leads to some pretty elegant solutions. But how exactly? At the code level, the best examples come through the use of Mixins, Object Management and Identifiers. Lets take a look.