DEV Community

Discussion on: Typescript: First thoughts

Collapse
 
emptyother profile image
emptyother

I disliked js.I never liked writing frontend code until typescript came along.

Too much time spent on silly typos. Too much time writing null/undefined/0/[] checks. Or spent time protecting method arguments from messing up string and number addition. I can code faster, with less errors, without having to re-reference the documentation constantly. I can rename a variable and be sure it gets updated everywhere. Whats not to like? Well, writing good type definition files for imported js libs can be a chore, but thats only done once.