Typescript makes code easier to read and understand Typescript has ability to add static types to Javascript code Typescript is open source Typescript simplifies Javascript code Typescript is Javascript with additinal features Typescript support ES5 and ES6 Typescript do Compile-Time checking Typescript helper classes are available to reduces code Typescript code is more readable as compared to Javascript Typescript provide compiler that convert Javascript code to TS Typescript reduces bugs like null handling,undefined etc This is my first post on dev. Follow me for more content.
Top comments (15)
Many Javascript people hate Typescript. Yet is is so similar to C# that solutions using Asp.Net Core for Backend essentially have an isomorphic development environment.
Yes, Typescript is an excellent tool especially for Intellisense. This gives instant API discoverability. It's everything Javascript plus a lot more.
How is TypeScript code more readable than plain JS? I think it makes your code more bloated and puts less focus on the actual logic, more on just type checking. However I've not done so much in TypeScrip yet!
It helps you structure your code better by giving you better tools. OOP, SOLID, many language features vanilla JS is missing like decorators, optional chaining, nullish coalescing and many other features. IntelliSense/auto-completion makes you more productive and helps you avoid typos.
Optional chaining and nullish coalescing are built into JS
...but not supported by all browsers.
Dear vanilla JavaScript users, which version do you use? Transpiler?
Pacharapol Withayasakpunt ・ Dec 11 '20 ・ 1 min read
TypeScript is a crutch for developers who can't stomach dynamically typed languages and the advantages they bring
More like disadvantages and security issues they bring.
hahaha yes, you're right.
TypeScript is both helpful and fake.
It doesn't provide run type checking. And sometimes typings are wrong!
Most famously,
Array[n+1]
andRecord<string, any>['non-key']
.Yes, I prefer Typescript, by thousands of times. But, I have also seen weird bug produced a couple times because TS can't really predict everything someone might do with objects.
Not agree with this
Typescript is OOP
Typescript is FP
justforfun
We can compile code from X syntax to Y syntax or readable to unreadable code
hahahhah