News for hackers. Stuff that matters.
Re:TypeScript is now officially 10 years old by blackoil on Sunday October 09, 2022 @06:30AM (#33139704)
Considering how mature is the TS ecosystem, I see no reason to not use it for my personal projects.
Re:TypeScript is now officially 10 years old by jmull on Sunday October 09, 2022 @01:14PM (#33143147)
You tend to have to write a bunch of code that mostly catches problems you don’t have.

Personally, I’m marginally on the side of using TS even for small 1-2 person projects, but only slightly, and I can understand the case not to.

Well designed projects are no more complex than they need to be, and for many smaller projects that means — at least for web ones — that you have few significant “type barriers” where types are non-trivial and communicate or structure things in a way that is useful. And the type-heavy areas also tend to be where the app is ingesting data from a non-local source — exactly where static type checking is useless. (It’s always extra annoying when you’re fighting the type checker when writing the code that really ensures the data has a valid form.)