What is TypeScript and why should I care?
In general you could say that it's more laboursome to write in strongly typed languages, but the effort pays of in ease of maintenance and potentially increased performance. This all boils down to the fact that the intent of the programmer is made more clear to the computer.
Take for that you have variables "name" and "age" declared as string and integer respectively, then the it's clear that age needs to be a number (15) and not a string (fifteen). Using a wrong type of value will result in an immediate failure upon compilation. In a weakly typed language your code could take a string for a number, but this will not cause the program to fail immediately. Rather it will fail later when you would, for example like to perform math on the age.
In a nutshell TypeScript is an open definition for a programming language and a collection of open source tooling to emulate strong typing during development. This leads to significant advantage when working with large codebases, but is also advantageous for smaller projects as strong typing enables better software development tooling.
TypeScript is already widely deployed
Learn more about TypeScript:
- TypeScript source code
- TypeScript documentation
- TypeScript won
- I Was Wrong About TypeScript, Here is Why
- The Rise of TypeScript?