3 ms·
I see TypeScript more as a bandaid patch which solves small problems but causes bigger future problems than it solves. TypeScript and its many dependencies add
by cryptica 6y ago
I see TypeScript more as a bandaid patch which solves small problems but causes bigger future problems than it solves. TypeScript and its many dependencies add to the kinds of compatibility problems you allude to.
I'm a strong believer that the language's type system doesn't matter that much. Statically typed or dynamically typed. It's possible to write equally good quality code in both paradigms. The key to good code is logical separation of concerns (high cohesion) and simple interfaces which have simple parameters and return values (loose coupling). Also, having well defined concurrent event loops is important if your system requires a lot of async logic.
The obsession with TypeScript now is mostly the result of the fact that people have a tendency to blame tools (dynamically typed languages in this case) for their own incompetence.
- jamil7 6y agoI feel very productive in statically typed languages like Rust and Swift but hard agree on Typescript and I’ve said it here before. It feels like the worst of both worlds, extra code and dependencies for limited type safety. The amount of times it causes some issues with compatibility or a library has missing or incorrect typings has left a bad taste in my mouth. Granted I always work on small teams or alone though.
- samhuk 6y agoI agree with the library compatibility issues for typescript, I've felt that pain before, but it is getting better by the day with more adoption. I've always held the belief that the major flaw of Typescript was that it is preceded by Javascript. This caused fragmentation. If the web was Typescript first, I believe it would have been quite the "nirvana". But then again, Rome wasn't built in a day...