this post was submitted on 10 Sep 2023
121 points (98.4% liked)

Out of the loop

10820 readers
1 users here now

A community that helps people stay up to date with things going on.

founded 1 year ago
MODERATORS
 

I keep seeing posts of some drama with typescript. What happened?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -3 points 1 year ago* (last edited 1 year ago)

As a person who has been writing JS for a very long time, and was building SPAs before the term existed...

It all comes down to return on investment. The arguments I always hear in favor of TS are solutions to problems I've never had, at the expense of writing more code to do the same amount of work.

It's the same for people who tell me that they think everything should be tested then show me the tests they spent the last 40 hours working on, which I can quickly see are extremely brittle and unlikely to ever show any ROI. You will never be able to test every scenario, increasing the amount of things you test arbitrarily just increases the cost of building and maintaining your software. Each test you add should be something worth building and maintaining.

Excess code that isn't providing value is far more detrimental than not having a few extra tests or type safety.