Functional-core-imperative-shell icon indicating copy to clipboard operation
Functional-core-imperative-shell copied to clipboard

[Discussion] Pure vs effectful classes

Open olleharstedt opened this issue 3 years ago • 0 comments

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/

olleharstedt avatar May 04 '21 21:05 olleharstedt