JS Party: JavaScript, CSS, Web Development cover image

JS Party: JavaScript, CSS, Web Development

Type War (what is it good for?)

Sep 14, 2023
Rich Harris, creator of Svelte, discusses the decision to remove TypeScript support from the Svelte project and use JS doc annotations instead. They explore the benefits of this approach and touch on the advantages of idiomatic JavaScript. The podcast also delves into the issue of tribalism in programming languages and the negative aspects of Twitter. DHH's critique of TypeScript and the Turbo JavaScript library are also discussed. The hosts mention an upcoming episode on JavaScript security with Ron Paris.
01:10:05

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • The divide between TypeScript and JavaScript is often more rooted in personal preference and experiences rather than objective analysis.
  • The controversy around removing TypeScript from libraries showcases the challenge of finding a consensus on its role in library development.

Deep dives

Removing types from your own code is misguided behavior

The dispute between TypeScript and JavaScript is rooted in the strong opinion people hold about type-safety in code. TypeScript converts have had the revelation of the benefits of types and find it challenging to go back to JavaScript without them. However, the argument often lacks nuance, leading to a black-and-white view. This binary mindset makes it difficult to have civil discussions about the merits of each approach. While TypeScript can be incredibly helpful for large codebases with multiple contributors, it is not without its drawbacks. TypeScript can sometimes be shackling, adding additional complexity and time spent resolving type issues. Additionally, many web developers have been writing JavaScript without types for years and have built large-scale websites successfully. The divide between TypeScript and JavaScript is often more rooted in personal preference and experiences rather than objective analysis.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode