News for hackers. Stuff that matters.
Re:Ask HN: Is it worth it to invest in learning TypeScript? by kgin on Sunday November 07, 2021 @11:16AM (#29140685)
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.

Re:Ask HN: Is it worth it to invest in learning TypeScript? by bengold14 on Sunday November 07, 2021 @11:22AM (#29140747)
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.

Re:Ask HN: Is it worth it to invest in learning TypeScript? by AfterAnimator on Sunday November 07, 2021 @12:08PM (#29141243)
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.

Re:Ask HN: Is it worth it to invest in learning TypeScript? by Shish2k on Sunday November 07, 2021 @11:24AM (#29140772)
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 :)