AngularJS supports "mixins" with angular.extend, but this approach has some drawbacks. In this video Brett takes a look at a more robust approach to mixins inspired by the Ruby programming language.
I felt like this lesson moved far to quickly, and didn't have the kind of immediately practical takeaways as a lot of the other lessons. I'm trying to dig into this kind of pattern right now and was hoping for the same kind of insights other lessons have provided. Using this pattern without a practical example, immediately jumping into a 3rd party library, and only showing how it applied to testing didn't really help me understand Angular.extend or a lot of the core principals that make this pattern so good. I'd love to see a deeper dive into the mixin pattern, and maybe with a little more background into when something like this is useful.