Software Engineering Radio - the podcast for professional software developers

Episode 384: Boris Cherny on TypeScript

26 snips
Oct 16, 2019
Boris Cherny, author of Programming TypeScript and a software engineer at Facebook, dives deep into how TypeScript can revolutionize JavaScript projects. He discusses the advantages of gradual typing and structural typing, emphasizing their importance in managing larger codebases. The conversation highlights TypeScript's type safety features and its seamless integration with popular frameworks like React and Angular. Listeners will learn how TypeScript enhances JSON handling and reduces type errors, paving the way for cleaner, more reliable code.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
INSIGHT

Essence of TypeScript

  • TypeScript is a weird yet practical language compiling to JavaScript with a unique type system.
  • It features structural, static, strong, mostly inferred, gradually typed characteristics.
INSIGHT

Why Compile-to-JS Languages Exist

  • JavaScript's huge ubiquity led to big apps but lacks essential features for scalability.
  • Many compiled-to-JS languages, like TypeScript, address JavaScript's shortcomings by adding static types.
ADVICE

Heed TypeScript Errors Early

  • Pay close attention to TypeScript errors shown as red squigglies in your editor as you type.
  • Fix type errors promptly to strengthen code safety and prevent bugs before compilation.
Get the Snipd Podcast app to discover more snips from this episode
Get the app