In this article you will learn why it is very critical to adapt it in both your frontend and backend solutions
So what is typescript ?
you might be wondering why Typescript ? Here are some reasons why:
1. Better developer experience :
with typescript you get perfect code completion and assistance as well as a self documenting code that is well structured and self explanatory. just try it out :)
2. Easy to start and adopt
3. AOT compilation
TypeScript does everything during compilation time, so it doesn’t have a negative effect on runtime performance.
One of the examples of this can be protected and private fields introduced into the standard by ECMAScript, which has been around in TypeScript for some time. The difference is that TS is checking it at compilation, and ES during runtime — and this can affect application performance.
4. Prevents bugs
TypeScript won’t make your software bug free. But it can prevent a lot of type-related errors.
For example, when you have an object you now can’t misspell or accidently access a property that doesn’t exist.
Thanks to it, it is now way more difficult to write invalid code. If it compiles, you might be quite sure that it actually works.
5. Loads of tools enforce or encourage the usage of typescript
TypeScript is a superset of JS, so all of the JS frameworks should be compatible with TS with a little bit of tweaking. that being said you might be terrified when hearing the word tweaking. fear not, practically every modern web framework supports typescript and even some of them enforce it as a the primary language.
Some examples are Angular, one of the most popular front end web frameworks, NestJs a robust backend framework that I personally like, etc …
Even React and Vuejs adapted and supported typescript, so what are you waiting for ?
Typescript is a very popular and useful tool that both frontend and backend web developers need to at least know the basics of it.
Writing articles is a tough thing to do so please support me by following and clapping also consider sharing the article and comment what should I write about next.