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.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner