OOP

Enhancing Mixins with Decorator Functions

Last time, in "Real" Mixins with JavaScript Classes, we saw how we can create powerful ES6 mixins by using class expressions as subclass factories. Now, let's look at some enhancements that make our mixins more powerful, in a way still requires no framework for mixin users, and is…

"Real" Mixins with JavaScript Classes

Mixins and Javascript: The Good, the Bad, and the Ugly. Mixins and JavaScript are a like the classic Clint Eastwood movie. The good is that composing objects out of small pieces of implementation is even possible due to JavaScript's flexible nature, and that mixins are fairly popular in certain circles.