Skip to content

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

Comments

Typescript is for big code bases and big teams.

The smaller your project, the more pointless typescript will feel. Working alone on a small project, it’s a LOT of extra stuff on the screen to avoid a very specific kind of bug.

I disagree. For me Typescript is incredibly useful at any size. I find myself missing it while solving leet code problems.

And it takes 5 minutes to set up.

I disagree, for me it saves a lot of time by giving you more IDE tooling that you can lean on and less stuff you have to hold onto in your brain.

Once you're proficient in TS, adding type annotations really doesn't take much time, and it helps save time testing by letting the compiler "test" your code before it even runs.

I’m using it for a collection of small projects -- I appreciate that I can come back into a codebase I’ve not touched for 3 months, and my IDE tells me what the data structures are instead of me having to page-in all that knowledge manually :)

AboutSource Built by g1lg1l

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