Hacker News new | past | comments | ask | show | jobs | submit login

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.



I 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.


I'm curious specifically what friction you ran into.


The 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.


Well, 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.


Eh, 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: