Hacker News new | ask | show | jobs
by brigadier132 772 days ago
In many ways typescript is terrible, but I've been writing it for a long time now and I don't often write bugs in it that get shipped to production. I've never really run into bugs that I could blame on typescript being bad. I just don't do dumb things like comparing strings and numbers. So yeah, it has a bunch of weird foot guns and is just generally not efficient but

1. I can write code that's fast enough to solve the problem.

2. I can write it quickly.

3. I can hire a million people to work on it if I need to.

4. Every single company that releases a service releases a Typescript or Python library first.

Also from personal experience, using 1 language across all environments speeds up development massively. Especially early on in a project when the schemas are not set in stone. If every time you update a table you need to change 4 different files and update all your validation logic you will have a rough time.