|
|
|
|
|
by depressedpanda
1078 days ago
|
|
> ... the way I see it is that if your JS code is bad, then you may get value out of TS, but if your JS code is already good, you won't get any value out of TS. You might not get any value from the typing when writing the code, but the poor sod tasked with maintaining it two years later definitely will. Also, the added types and compile time check will greatly benefit anyone trying to perform all but the most trivial of code refactoring. Typescript adds some inertia initially, and you are correct in that it will allow inexperienced developers getting away with writing overly complex code, but it's definitely worth it for any code base larger than a couple thousand LoC. |
|