~/talk

Playing Board Games with Scala JS

Talkat ScalaCon November 2021 · 2021-11-02..11-05· [pwa, creative-coding]
links:none on file
slides:none on file

Built a mobile PWA companion for 7 Wonders that persists recent games and scores using Scala.js + Scala 3 and Scala.js React components. Uses algebraic data types for UI props, automatic derivation for IndexedDB encoding, and a custom IndexedDB free-monad layer to avoid premature transaction closing and callback hell. Shows how pages, lifecycle hooks, and repository-backed components work, integrates with Next.js via explicit bindings, and reports a working app with persistent storage while warning about larger bundle size and the need to write JS facades.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:48Building a simple web app
  3. 3:31Why Scala.js over alternatives
  4. 6:49Imperative vs functional DOM
  5. 9:38Introducing Scala.js React
  6. 13:12Application structure overview
  7. 15:23Modeling routes with opaque types
  8. 17:11Reusable UI components
  9. 23:22Fetching external data
  10. 27:34Component lifecycle and state
  11. 30:21Persistent storage with IndexedDB
  12. 32:27Challenges with IndexedDB
  13. 39:36Functional IndexedDB wrapper
  14. 43:26Implementing the games page
  15. 46:14Conclusion and future of web apps
  16. 48:49Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.