Pure Functions & Paladins Building TTRPGS with F# and MVU
summary
A working Fogent Roleplay web app built with Full Stack F# using the SAFE stack and Elmish MVU demonstrates pure update functions, message-passed state and websocket sync; client and server share the same model/update code in a shared project so the same character message updates local DB and broadcasts to others, avoiding full-object diffs. The talk shows an inject pattern for passing parent data, use of commands for async fetch, and an echo GUID to prevent double-applies.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:06Building my own TTRPG
- 2:51F# and Safe Stack
- 3:34MVU for state management
- 4:57Model View Update basics
- 8:06Chaining MVU components
- 11:15Inject pattern for data
- 15:46Commands for side effects
- 19:42Shared client-server logic
- 21:50State sync across clients
- 24:38Advanced patterns & Q&A
related talks
37mFull Stack Web in F#
50mFrontend in F#? Hold my beer!
55mF# and Fable: re-think web development
59mDungeons, Dragons and Functions
01h 00mReinventing MVC pattern for web programming with F#
43mFunctional UI, Functional Apps
46mSAFE apps with F# web stack
54mWriting a MMORPG game in Elm on both client and server
