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.

Top comments (0)