Skip to content

Comment on Ask HN: Is it worth it to invest in learning TypeScript?

Comments

65

It's probably worth it. I always use Typescript with React projects, as typing your props will make things a lot clearer. If you're using VSCode, the intellisense is very useful.

However, if you're just making a node CLI or writing a small Lambda or something, Typescript is probably not worth it. I don't believe you need Typescript with absolutely every project, but for the more complex frontend projects it will end up saving a lot of time.

I find building Node CLIs to be a lot easier and less error-prone if you use `clime` or `oclif`. You can use `oclif` with raw JS, but it's kind of nasty compared to TypeScript.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.