TypeScript explained analogously.
TypeScript is quite a popular programming language, especially among web developers. Itβs gained a lot of traction over the last few years, and some developers swear by it over JavaScript. Regardless of your feelings (if any) on the language, here are three analogies to help you gain a bit of understanding of the TypeScript language.
1st Analogy
TypeScript can be compared to a global positioning system.
Before a driver π leaves their house, route checking occurs through a GPS to ensure the driving route is as optimal as possible.
Before a developer π©βπ» runs their program, type checking occurs through a static type system to ensure the code is as error-free as possible.
2nd Analogy
TypeScript is like a parachute for developers.
A parachute gives a skydiver πͺ the confidence they need to know they can fall out of a plane βοΈ safely and without danger.
TypeScript gives developers π¨βπ» the confidence they need to know they can run their code π» safely and without errors.
3rd Analogy
TypeScript can be thought of as the more disciplined sibling of JavaScript.
TypeScript is good at following specific typed rules and could result in bug catches. π₯
JavaScript is good at not following specific typed rules and could result in bugattacks! π
Video
Courtney Yatteau, a Developer Advocate at Esri, wrote this article. The opinions in this article are solely Courtneyβs opinions and do not necessarily represent the postings, strategies, or opinions of her employer. If you have any feedback, please like and/or comment. Also, you can contact Courtney through Twitter if you have any questions or comments that youβd prefer to send privately.
Top comments (0)