codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Stack Choices: JavaScript vs TypeScript

Jake Prins
codeburst
Published in
3 min readJun 7, 2020

As a developer, there are many choices to make when building your next application. The rise of serverless technologies allows developers to build and run applications without thinking about servers and this also allows front-end developers to create full-stack applications and build SAAS web apps.

by Jake Prins

In Stack Choices, we take a closer look at some technologies that can help us to build these types of applications and try to make a good decision on what to use. This time, let’s take a look at going with plain old JavaScript or the rising star: TypeScript.

What is TypeScript?

TypeScript is an open-source language that builds on JavaScript by adding static type definitions. Types provide a way to describe the shape of an object, providing better documentation, and allowing TypeScript to validate that your code is working correctly.

You can easily use Typescript when starting a new React application by running yarn create react-app my-app --template typescript or work with Angular, which comes with Typescript by default.

How popular is TypeScript?

TypeScript seems to be taking over front-end development. Almost 90% of developers (who filled in the state of js survey) admit they would like to use or learn TypeScript in their next project. Besides that, it's one of the most loved languages, according to the 2019 Developer Survey by Stack Overflow.

My personal experience

I have been working with Typescript full-time for over a year now, and I have experienced the benefits of using TypeScript when working in a team. Something I personally like is, for example, the rich IDE support. I’m using VSCode and it offers features like code navigation, autocompletion, and providing accurate suggestions. You also get feedback while typing like flagging type-related errors as soon as they occur. This can help you write more maintainable code.

Although TypeScript is really good, it’s not perfect. In the beginning, I didn’t like working with TypeScript at all. It…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Jake Prins

Building products and writing articles for developers. https://jakeprins.com

No responses yet

Write a response