In this video I want to talk about why it's so important to learn Typescript nowadays. So let's jump right into it.
So here are things that are better with types than without:
- It's just difficult to understand and support the code. Because you don't describe your data in types. You just have string, number, boolean, arrays, objects. Normally we store entities inside objects but we can't really define or reuse them. We can't define and validate that this is for example User entity and it must have such properties or methods. This things makes to maintain projects easier and this is exactly what Typescript can do for us.
- Secondly is much better to get error in compiling type and not in runtime because it's already too late. This is what we are getting in Typescript out of the box. It doesn't mean that we will never get runtime error but lot's of errors we will catch earlier in compiling stage.
Also it helps you in writing better code even without Typescript because you start plan your applications in entities and types and not just a a bunch of variables that are working somehow together.
Call to action
I hope that now you know what is Typescript and why you need to learn it
Also I have a lot of courses where we are creating real application from scratch. I will link it down in the description below.
If you find this video helpful, don't forget to subscribe to this channel and hit subscribe button. Thanks for watching and I see you in my next video.