Purely Functional Composition

added by bpwndaddy
6/22/2015 3:39:12 PM

3 Kicks, 269 Views

In Functional Mixins, we discussed mixing functionality into JavaScript classes. The act of mixing functionality in changes the class. This approach maps well to idioms from other languages, such as Ruby's modules. It also helps us decompose classes into smaller entities with focused responsibilities that can be shared between classes as necessary.