3 ms·
There are a lot of comments saying that we can't avoid mutable state and dismiss this paper entirely. I find a practical interpretation of this paper is: - Fa
by vendiddy 4y ago
There are a lot of comments saying that we can't avoid mutable state and dismiss this paper entirely.
I find a practical interpretation of this paper is:
- Favor pure functions over impure functions
- Reduce mutable state and be deliberate about where those mutations have to happen
- Prefer derived state over keeping state in sync
There are always exceptions. Use your judgment on when this simplifies code and when it doesn't.