Hacker News new | ask | show | jobs
by lobut 3291 days ago
JavaScript is a mess, but the TypeScript benefits are a full "buy in". Like implicit or type inference only works when you use 'imports'.

It's a decent amount of cruft that you need to put in and it's not always smooth sailing.

TypeScript sometimes needs hinting and if you're doing it server-side. I once had to fix something in my node_modules because they were doing something wrong and TypeScript wouldn't compile unless I fixed that too.

I'm not saying that it's not worth it.

However, my team were severely turned off when we first started running with this.

1 comments

I think most teams push back when any new, stricter ruleset is imposed upon them. Sometimes they need some time to see the benefit. I was in the same boat in having to force TS on my team, but they've come to appreciate how effective it is at preventing issues and helping to track down already existing issues. Originally my decision was based on cost, so much dev time is burned away dealing with the shortcomings of JS.