Understanding Svelte's TypeScript to JSDoc Transition and the Static Typing Debate
By
culi
Baker's choice. Dense with flavour, light on filler.
Summary
The article discusses the 2023 controversy around Svelte's internal refactoring PR that removed TypeScript, which was misinterpreted as a rejection of static typing. It explains that the move was actually about using JSDoc for type checking while maintaining JavaScript, and explores the broader debate about TypeScript vs JavaScript in web development, including perspectives from developers like Dan Abramov and Rich Harris.
Key quotes
· 4 pulledThe premier darling of web frameworks ostensibly rejecting the benefits of static typing was a big deal.
Rich Harris felt compelled to hop onto HN and explain how this was 'not a vindication of anti-TypeScript sentiment'.
The move was about using JSDoc for type checking while maintaining pure JavaScript code.
This sparked broader discussions about TypeScript adoption, developer preferences, and the trade-offs between static typing and JavaScript flexibility.
You might also wanna read
wterm: A DOM-based Web Terminal Emulator Powered by Zig and WebAssembly
wterm is a web-based terminal emulator that renders directly to the DOM, providing native text selection, copy/paste, find functionality, an
Gridland: React Framework for Building Terminal Apps That Render in Browser and Terminal
Gridland is a React framework that enables developers to build terminal applications that can render in both the browser and terminal enviro
OpenPolicy Astro Integration: Zero-Build Privacy Policy Generation
The article discusses OpenPolicy's Astro integration for generating privacy policies, terms, and cookie policies directly within Astro page
Vite+: Unified Toolchain for Web Application Development
Vite+ is a new unified toolchain for web application development that aims to simplify the development workflow by combining runtime managem
Chrome DevTools MCP Server Update Enables Coding Agents to Debug Active Browser Sessions
Chrome DevTools MCP server now allows coding agents to directly connect to active browser sessions, enabling them to reuse existing sessions
ClickSay: Developer Tool for Capturing Web Elements and Generating AI Coding Prompts
ClickSay is a developer tool that allows users to click any element on a webpage to instantly capture its CSS selector, computed styles, HTM
