Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think composition and mixins should be kept separate. In my mind (and maybe I have an incorrect view of it), mixins throw a bunch of new properties on the base object, whereas composition keeps the original object encapsulated in a single property. Would you consider the second type to be a mixin? I've never heard it described that way.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: