|
|
|
|
|
by AstroBen
439 days 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 |
|