3 ms·
> You don't have to worry about JS scoping rules or how `this` works, or how ES6 classes are ultimately prototype-based I don't worry about these things. I fee
by ng12 9y ago
> You don't have to worry about JS scoping rules or how `this` works, or how ES6 classes are ultimately prototype-based
I don't worry about these things. I feel like I'm writing a lot less JavaScript these days, mostly through the power of React, JSX, and ES6. I only really use Typescript to type DTOs. I just don't have enough problems to scrap everything for a completely new language.
- jasim 9y ago> I just don't have enough problems to scrap everything for a completely new language. I was not recommending that at all. I tried out Typed FP only after a project with a lot of complex data transformations (which is a sweet spot for Hindley Milner based types) and couldn't hold it all in my head. In the React world, the equivalent would be a deeply nested component hierarchy, passing around a lot of props, and having a large state-tree and correspondingly complex reducer. You can definitely use the typical Redux+TS/Flow+Immutable stack there without any issues, but I think there is a much better developer ergonomics on offer here.