3 ms·
It's about minimizing and isolating state and side effects, not eliminating them completely Functional core, imperative shell is a common pattern. Keep the sid
by AstroBen 2y ago
It's about minimizing and isolating state and side effects, not eliminating them completely
Functional core, imperative shell is a common pattern. Keep the side effects on the outside. Instead of doing side effects directly, just return a data structure that can be used to enact the side effect