the most difficult part of JS inheritance... And on the 6th day, God created an abundance of Talking Animals, that they may be used in JavaScript inheritance examples. Thursday, August 22, 13
implementation varies widely and abstraction is often leaky (const, static) class, extend and super are reserved words in particular, the relationship between this and super is difficult... Thursday, August 22, 13
“In general, when working with prototypes, one typically chooses not to categorize but to exploit alikeness.” –Antero Taivalsaari (Nokia Research Center) Thursday, August 22, 13
No hierarchical constraints Functionality is grouped by what it does not who it belongs to Define special cases first; common code later Thursday, August 22, 13
Mixins as verbs instead of nouns. Mixins are functions. We can take advantage of closure scope and arguments. A mixin can be applied to any object type: prototype, instance, whatever. Advice allows functional mixins to augment existing functions, not clobber them. Thursday, August 22, 13