News for hackers. Stuff that matters.
Re:The State of JavaScript Frameworks, 2017 by acemarke on Sunday January 07, 2018 @04:43PM (#16092921)
Yeah, I'd agree that pubsub _is_ a form of indirection in and of itself.

For comparison:

    state.counter += 1;
vs

    store.dispatch({type : "INCREMENT_COUNTER"});

    // counter slice reducer
    case "INCREMENT_COUNTER" : return state + 1;
That's indirection, because we're no longer going in and modifying the state right there. So yes, any function call that encapsulates or abstracts behavior would be a small form of indirection, and the act of describing the event or desired update as an action rather than directly implementing it is definitely a form of indirection.
Re:The State of JavaScript Frameworks, 2017 by abritinthebay on Tuesday January 09, 2018 @01:54AM (#16104151)
Well yes, ok, but as you said - that makes function calls technically indirection.

So, as before, sure - that's fine, but it makes the original criticism a bit... strange.