7 Obvious Reasons to Use TypeScript
Top 10 In-Demand programming languages to learn in 2020
In-depth analysis and ranking of the top programming languages for job seekers and new developers
In another post about modern programming languages, I have put TypeScript as the 4th most demanding modern programming language:
Top 7 Modern programming languages to learn now
How Rust, Go, Kotlin, TypeScript, Swift, Dart, Julia can boost your career and improve your software development skills
It is Typed
- It gives Compile-time safety
- It is Easier to Understand
- It is faster to implement using modern IDE’s (code auto-completion, more natural search).
- It is easier to refactor
- It gives better performance
- No additional compiling step
- Concise and succinct code
- No need to learn the “extra” Type system
- With “duck” typing, easier to hack
- Easier to write higher-level abstraction without a Type system
It has excellent language design
Also, TypeScript uses some of the most advanced type systems like Union Types, Intersection Types, Differentiating Types, Nullable Types, Conditional Types. Here is the official documentation of TypeScript’s advanced types. Like many other modern languages, it also offers Type Inference.
In terms of language design, it is comparable to other modern languages like Kotlin, Go, Rust.
It gives development scaling
By development scaling, I want to mean the productivity of the teams will remain high even when more teams are added to the project.
Developers love it
In the Stackoverflow Developer Survey 2019, TypeScript has ranked joint second with Python in the most beloved language category:
It is popular and going strong
A language can have excellent features, but it does not mean that the language will be popular. Also, some languages gain popularity and instant hit (like Scala, CoffeeScript) but then later fade away.
For organizations and companies, choosing a new language is always a tricky question. What happens if the language will fade away in popularity in 5 years? What we will do with our production code base if we cannot hire new developers? For this reasons, shifting to a new programming language always need special considerations and careful observations.
Fortunately for TypeScript, the enterprises should not need to worry as it is already a trendy language. According to the GitHub Contributions, TypeScript has entered the Top 10 List (ranked 7th) :
It is also one of the fastest-growing languages and ranked fifth with a 161% increase in adoption last year:
It is Open Source and Backed by Microsoft
With 60k+ GitHub stars and 30k commits, it is one of the most active GitHub project:
I know many people have reservations regarding Microsoft for its history. But Microsoft in 2020 is a different company with different philosophies compared to Microsoft in, e.g., the 2000s. Today, Microsoft is the largest open-source contributor and has even joined the Linux Foundation. Also, the most popular Open Source IDE VSCode is developed by Microsoft. So, there is no reason not to use TypeScript as Microsoft develops it.
- Optional Chaining
- Nullish Coalescing
- Enum Type
- ECMAScript Private Fields
- Top-Level await
Popular frameworks and big companies are using it
As created by Microsoft and supported by Google during the early stage of development, TypeScript is hugely adapted and backed by large companies. Also, due to its Enterprise friendly features (developer productivity, typed, scalable, elegant, IDE support), which are very valuable in writing and maintaining large code-base, more and more large companies are using TypeScript. Here is an excellent blog describing why Lyft has moved to TypeScript.