pgrizzay
Re:How porting to TypeScript solved our API woes
on Wednesday April 08, 2020 @06:32PM (#22817914)
> Partial function application
Do you mean like curried functions?
Re:I love React Hooks
on Wednesday February 20, 2019 @08:48PM (#19213854)
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
Re:The TypeScript Tax
on Saturday January 26, 2019 @12:06AM (#19004863)
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.
Re:Introducing Hooks
on Thursday October 25, 2018 @11:51PM (#18306666)
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)