Functional-core-imperative-shell
Functional-core-imperative-shell copied to clipboard
[Discussion] Pure vs effectful classes
Hi ho!
I started to think about this pattern again, but this time in more OOP terms, with regard to state, dependencies and pure vs effectful classes. I think it should be possible to distinguish between "functional core" classes and "imperative shell" dito.
Discussion on Reddit here: https://old.reddit.com/r/PHP/comments/n484hv/discussion_a_class_should_have_state_or/