A simple but effective solution
Characteristics of this new language
The main feature of TypeScript is static typing. We say that a language is static typing when it meets these main characteristics:
- Variables have a data type.
- Values can only be assigned to variables of the corresponding type.
let age : number; //We assign the type number for the age variable age = 20; // The variable can now only assign values of type number
From these two main characteristics, some others are derived, such as
- Data Casting (Rate Conversion)
- Arguments with type
- Return type for functions
On the other hand, static typing languages lend themselves to the implementation of more advanced development tools, such as
- Recommendation of which arguments a function receives
- Recommendation of what type a function returns
- Self documentation of the code
- Better analysis to detect errors
The programming industry is incredibly diverse, even if you specialize in some area of programming, every day there is something new to learn, new technology, a new approach to problem solving, etc.
Every once in a while, a technology comes along that dazzles your eyes, that you immediately fall in love with, and you even wonder, how could you work without this technology? TypeScript is that kind of technology.
When you write a language with the intention that it will lend itself to the development of tools for developers, what do you get? A programming language with a development experience superior to others.
- more and more companies
The team that develops some of the most popular open sources use TypeScript for the development of these libraries. A couple of very popular examples are Angular and Stimulus.
This means that most of the documentation and examples of these frameworks, mainly Angular, are written with TypeScript. Eventually this means that applications developed using these libraries are made with TypeScript.
Angular is perhaps the most prominent example, virtually all applications in Angular are written using TypeScript, if you want to understand the framework in depth, you need to know TypeScript.
These decisions are not taken lightly, the teams that develop these frameworks take advantage of TypeScript features for the implementation of these frameworks and the development of web applications.
Learning and mastering this language is your gateway to other technologies.
Learning TypeScript introduces you to an incredible programming language, with even better development tools. Particularly, Visual Studio Code will offer an interesting number of improvements to your development flow.
Also, one of the great things about using TypeScript is that you can use it in different environments and for native, hybrid, web, desktop, and even web server application development.
Licenciada en Bellas Artes y programadora por pasión. Cuando tengo un rato retoco fotos, edito vídeos y diseño cosas. El resto del tiempo escribo en MA-NO WEB DESIGN END DEVELOPMENT.
After having published several articles about how to manipulate arrays and dates, today I will publish a post that some of you will find too basic and others will find…
We often use webcams to broadcast video in real time via our computer. This broadcast can be viewed, saved and even shared via the Internet. As a rule, we need…
Working with React, - and before the release of Hooks in version 16.8 - there was always the possibility to create components in three different ways based on a number of…