Practical Introduction to Building Browser Apps with F# and Fable
summary
Shows how to compile F# to JavaScript using Fable and build browser apps with the Elmish pattern (init/update/view) wired to React, rendering with SVG. Implements a playable Snake game (about 20×20 grid, 20–30px scale, ~200ms tick) demonstrating keyboard input, interval timer, food spawn, collision/game‑over, and immutable state via F# records and discriminated unions; uses Visual Studio Code, inspects Fable-generated JS, and reuses JavaScript libraries in production.
AI-written summary · about
chapters (9)
- 0:00F# and Fable intro
- 4:56Elmish architecture
- 9:37Snake game basics
- 15:59Drawing with SVG
- 24:45Snake movement & input
- 29:16Food mechanics
- 33:10F# benefits
- 37:28Debugging JS
- 40:46Libraries & extensions
related talks
55mF# and Fable: re-think web development
01h 01mConquer the JavaScript ecosystem with F# and Fable!
31mHacking F# in JS ecosystem
42mHacking F# in JS ecosystem
49mFunctional Web Development in F#
57mBranching Out with Elm
43mThe F# Path to Relaxation
01h 49mPurely Functional Web Apps using React and PureScript
