ReasonML Predictable Frontend Programming
summary
Compares ReasonML, JavaScript and TypeScript by showing concrete behaviors: type inference that deduces int usage from +, option/pattern matching that forces handling of none versus some, and how undefined/null differ from an option. Builds a working React app compiled with the BuckleScript compiler, formats with refmt, and uses the useReducer hook and dispatch actions for suggestion/reset/answer. Live demo compiles to JS, the app runs, and the examples reveal what actually changes versus just promising “examples.”
AI-written summary · about
chapters (12)
- 0:00Start
- 1:14How I Got into Reason
- 6:34Runtime Static Typing
- 7:16Type Inference
- 9:56Null and Undefined
- 12:43Pattern Matching
- 14:57Start Script
- 16:04Create a React Component
- 24:25Initial State
- 26:08Generate a Random Game
- 34:32Actions
- 37:48Reset
related talks
40mBrief Introduction to ReasonML
40mReasonML" Strict, powerful, and forgiving."
26mAnd The Reason Is You
30mTowards a simpler JavaScript ecosystem
57mBuilding Scalable, Maintainable Apps Using TypeScript and React
18mDestructuring state management (in React)
58mFrontin' like a Back-er
40mReactive Programming: A Better Way To Write Frontend Applications
