These are chat archives for jdubray/sam

27th
May 2017
Jean-Jacques Dubray
@jdubray
May 27 2017 13:04
"Side Effects, Front and Center!", Pat Helland, May 2017 - or IMHO, why immutability as a programming model is setting us on the wrong path, it will greatly limit our ability to create complex UX with an increasing number of Server-Side and Device-to-Device events. Facebook's clients never strike me as working flawlessly.
Jean-Jacques Dubray
@jdubray
May 27 2017 13:10

The key sentence is:

"Personally, I think all distributed computing depends on timeouts, retries, and idempotence."

Idempotence being the elephant in the distributed room. That's my I believe SAM has a much better chance than a pure function approach because the tuple action/model/state offers a much better way to create idempotent operations than a big fat reducer flanked by anemic actions and stores. Immutability doesn't help there a bit.

Jean-Jacques Dubray
@jdubray
May 27 2017 13:23
In other words FP appears to work better because in simple cases where the output of the function is "the" side effect, we tend to create idempotent operations unwittingly, but at scale (for more complex state machines) purity will probably make it harder.