Should you use TypeScript for your next project? A simple guide for everyone
TypeScript has become one of the most popular technologies in the web development industry. Unless you’ve been away meditating in the Himalaya, you’ll definitely have heard of it and its relevance in 2022. It allows you to build more robust and less silly-bug prone apps. So, what is this magic? It’s TypeScript.
What is TypeScript?
TypeScript is a statically typed programming language built on top of JavaScript developed by Microsoft. In layman's terms it’s JavaScript with types and interfaces.
JavaScript itself was developed to be used as a simple scripting language on the client side and never intended for big enterprise applications. That’s why you might sometimes see those types of JavaScript memes.
That’s the problem that TypeScript tries to solve, aiming to build a more solid and robust language for developing applications.
TypeScript, the goodies
Of course as everything, TypeScript also has its pros and cons. First I mentioned the good stuff, now let’s see the cons.
Recommended by LinkedIn
TypeScript, the disadvantages
At the end of the day, it all depends on your needs
Summarising, I personally would only use TypeScript if my application has a lot of data flow and state management. With TS, this data flow would be much clearer and easier to manage.
For example,a project I can think of is an ecommerce, where you’d have to manage products, filters, carts and user state.
This is it for this article, I hope it has helped you learn more about the TypeScript language and whether you should use it or not. Let me know in the comments what you think of this language!