4 ms·
I gave TypeScript a try but honestly thought it was more trouble than it's worth in most javascript applications/libraries. Maybe that's just the lazy person i
by grimmdude 10y ago
I gave TypeScript a try but honestly thought it was more trouble than it's worth in most javascript applications/libraries. Maybe that's just the lazy person inside me, or maybe my projects aren't big enough to make use of it's features.
- jawarner 10y agoI'm curious specifically what friction you ran into.
- the_duke 10y agoThe biggest obstacle for Typescript by far is using libraries which have no or outdated declaration files on DefinitelyTyped. You can get good at writing the declarations yourself, but it's hugely annoying.
- oldmanhorton 10y agoWell, you don't have to write any declarations -- everything will just be typed as `any`, which isn't preferable but is exactly what you'd get if you weren't using typescript.
- grimmdude 10y agoEh, I guess it was mainly the learning curve and lack of payoff. As mentioned here, I think my project size wasn't big enough for it to show it's usefulness.
- seanwilson 10y agoI think you'd see the benefits once the code base gets big enough you can't fit it all in your head any more and the chance of mistakes rises rapidly.