3 ms·
As the OP, I would argue that your metaphor actually does match well how delegation works not only in the real world, but also in JS. For example, if I'm given
by _getify 13y ago
As the OP, I would argue that your metaphor actually does match well how delegation works not only in the real world, but also in JS.
For example, if I'm given a task by my boss, and he says "just make sure it gets done", I'll have a set of materials, say the specifications for a task, or an email thread discussing it, or something like that. When I decide to "delegate" it to another person on the team, I'm not going to expect that person to start from scratch... I'm going to hand them the "context" for them to tackle the task in. I'm going to say: "here's what you need to get started, go do it."
Metaphors are never perfect, by definition. But I take that perspective on your metaphor, and on JS's behavior delegation, and I think it fits decently.