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)