> Partial function application Do you mean like curried functions?
FWIW, I wrote up an alternative proposal for hooks that was based on pure functional programming patterns. It's more complex but doesn't resort to the impure functions like hooks which cause the same order/conditionals…
This was the most infuriating part. He either doesn't understand what a hof is, is actively lying, or just hasn't even used typescript long enough to understand this is incorrect.
Yup! they can be tested separately and introduce a separation of concerns that is much better than a "simple" class that "just has everything in it". (Which usually leads to mounds of copy-paste code)
> Partial function application Do you mean like curried functions?
FWIW, I wrote up an alternative proposal for hooks that was based on pure functional programming patterns. It's more complex but doesn't resort to the impure functions like hooks which cause the same order/conditionals…
This was the most infuriating part. He either doesn't understand what a hof is, is actively lying, or just hasn't even used typescript long enough to understand this is incorrect.
Yup! they can be tested separately and introduce a separation of concerns that is much better than a "simple" class that "just has everything in it". (Which usually leads to mounds of copy-paste code)