News for hackers. Stuff that matters.
Re:Mixins, Forwarding, and Delegation in JavaScript by blakehaswell on Friday April 11, 2014 @01:11AM (#7571319)
Agreed. Generally I would argue against combining data and behaviour, for the very same reasons that the author wrote these abstractions.

However, I think there are better methods available. For example I would much prefer to organise related behaviour using Node modules (using Browserify if it’s a client app), which give you an extremely understandable way to group related behaviour AND hide private state.

There are no comments on this comment yet.