News for hackers. Stuff that matters.
Re:JavaScript (client-side) Messaging Anti-Patterns by ifandelse on Wednesday March 21, 2012 @11:39AM (#3734844)
Well said. I've used the second pattern you described as well. If I find myself in a situation where I'm tempted to treat the message as mutable, it usually indicates I've hit the point where I need to (potentially) use some sort of transformation pipeline, and the steps in that transformation should ideally be encapsulated inside a component and not publicly exposed on the bus itself.

There are no comments on this comment yet.