Skip to main content

Command Palette

Search for a command to run...

Things That Make TypeScript Great

Updated
2 min read
Things That Make TypeScript Great
A

Software Engineer currently working for Quantelux

34 year old Michigander, who loves the outdoors, loves staying active, loves programming, and anything wrapped in a tortilla.

My blog focuses on the the many varieties of knowledge I've picked up along the way in my developer journey.

TypeScript is a popular programming language developed by Microsoft that adds optional static typing and other features to JavaScript. It's becoming increasingly popular for its ability to catch common errors and improve code readability and maintainability. Here are some of the things I learned about TypeScript, and some things that make it a great tool to use:

TypeScript is a superset of JavaScript.

One of the main benefits of TypeScript is that it's a superset of JavaScript, meaning that any valid JavaScript code is also valid TypeScript code. This makes it easy to get started with TypeScript if you already have experience with JavaScript.

TypeScript adds static typing.

One of the key features of TypeScript is its support for static typing. By adding type annotations to your code, you can catch errors at compile time instead of at runtime. This can help you write more robust and maintainable code.

TypeScript has a powerful type system.

TypeScript's type system is much more powerful than JavaScript's. It includes support for union types, intersection types, generics, and more. This can make it easier to write code that is both flexible and type-safe.

TypeScript can help you catch errors earlier.

Because TypeScript is a statically typed language, it can catch errors earlier in the development process. This can save you time and effort by preventing errors from propagating throughout your codebase.

TypeScript can improve code readability and maintainability.

By adding type annotations to your code, you can make it more clear and understandable. This can make it easier for other developers to work with your code and can improve its maintainability over time.

TypeScript has good integration with popular frameworks like React, Angular, and Vue. This can make it easier to write type-safe code in these frameworks and take advantage of TypeScript's powerful features.

Overall, TypeScript is a powerful programming language that can help you write more robust and maintainable code. By adding static typing and other features to JavaScript, it can catch errors earlier in the development process and improve code readability and maintainability. If you haven't already, it's definitely worth checking out TypeScript and seeing how it can help you improve your code.

J

At some point in my career I was afraid of using TypeScript, I really don't know why. But I was and the more I created small personal projects or worked on projects that used TypeScript, I got more comfortable with it. At my last employer, the most exposure I got to TypeScript was an Angular eCommerce Web Application we were building. It was just not enough for me to get comfortable with it until I started to go to meetups, workshops, watched videos, and started to take the Mastering TypeScript course by Colt Steele.

Today, I use TS alongside Vue.js at my job and I have gotten more comfortable with it and continuously learning the best way to use it within our software's code.

Also, did you hear that the TypeScript Documentary was released this week by KBDocumentaries. You should check it out, it was awesome! - https://youtu.be/U6s2pdxebSo?si=FSg8fH54IUYY8N9D

1
A

I know what you mean! I also was super scared and hesitant to use it at first. I thought it would be quite the task to learn.

I didn't start using it until I landed my first developer position as a contractor where we had some Vue projects that had TypeScript.

It actually made me appreciative of it, even if it was always yelling at me.

Colt Steele is great! I definitely have seen some of his courses before, and I've heard nothing but good things about them.

Oh I didn't hear about that. I will for sure check that out. Thanks man!

1