How to get away with functional programming in frontend applications
summary
Argues that injecting functional programming into an existing JavaScript app is practical: set up TypeScript alongside Babel or replace the transpiler, add declaration files from DefinitelyTyped, and write new files in TS while leaving legacy JS. Recommends replacing Promise with fp-ts Task and using Option for nullable values. Gives a real case: a ~50k lines in 3 months migration to TypeScript by a small team while shipping features, demonstrating the approach works.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:40Functional programming
- 11:50Complexity
- 17:16Fungal War
- 24:53Type Checkers
- 25:20JavaScript Type Checkers
- 29:05How to migrate to TypeScript
- 35:43Can these be done
- 36:44What about functional programming
- 39:51Task
related talks
34m[Eng Sub]Is it Okay to Pursue Functional Programming on Frontend?
46mA Real World Example of Functional Programming with fp-ts
30mTypeScript: Seeing Past the Hype
27mMatthew Gerstman - TypeScript: Seeing Past the Hype
31mJavaScript That Scales
07mTyped Functional Programming in TypeScript with fp-ts
30mHow to Inject TypeScript Into Existing Projects
24mTypeScript and how I've learned to love the compiler
