Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pgrizzay
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
1.
▲
by
pgrizzay
6y ago
> Partial function application Do you mean like curried functions?
2.
▲
by
pgrizzay
8y ago
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.
3.
▲
by
pgrizzay
8y ago
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.
4.
▲
by
pgrizzay
8y ago
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)