Better HN
topnewbestaskshowjobs
Log inSign up

pgrizzay

3 karma · joined Mar 3, 2016 (10y ago) · 4 submissions

Submissions

comment 6y ago · link · parent

> Partial function application

Do you mean like curried functions?

comment 7y ago · link · parent

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 rules.

https://paulgray.net/an-alternative-design-for-hooks/

I think the next big framework will build on top of the declarative jsx-style rendering from react, while also providing pure abstractions of the side-effecting browser APIs

comment 7y ago · link · parent

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.

comment 8y ago · link · parent

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)