Putting the Fun in FRP: Leveraging MVVM & TDD for a better life
summary
Live coding shows an existing stateful game refactored into MVVM & TDD with ReactiveCocoa (iOS) and similar Rx Java patterns on Android, moving score logic out of a global variable into a view model that uses the scan operator to accumulate taps, maps scores to image names, emits accessibility strings, and binds outputs to the UI. Tests run first (mock Panda tracking client via AppEnvironment), validate tracking events and UI outputs, and the team reports 764 tests and a 98–100% coverage goal.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:43Why use FRP daily
- 2:16MVVM with reactive signals
- 5:27Testing as a game
- 6:53Live coding demo begins
- 10:30Setting up view model tests
- 13:45Writing first test case
- 14:25Implementing score logic
- 16:40Adding image output
- 18:57Tracking user actions
- 21:50Adding accessibility
- 23:41Binding view controller
- 26:53Demo results and summary
