DEV Community

Cover image for 3 Analogies to Describe TypeScript ๐Ÿ‘ฉโ€๐Ÿ’ป
Courtney Yatteau
Courtney Yatteau

Posted on

3 Analogies to Describe TypeScript ๐Ÿ‘ฉโ€๐Ÿ’ป

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

TypeScript Analogies ๐Ÿ‘จโ€๐Ÿ’ป #coding - YouTube

Three analogies to describe the TypeScript language. #technology #coding #developer

favicon youtube.com

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.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)