Finding Happiness in Functional Programming
summary
Teams separate side effects from pure logic and surface co‑effects (dependencies) so functions take all inputs and remain testable, and they adopt lenses for UIKit to compose immutable transformations of models and views. Playgrounds replace storyboards to render isolated states; that enables automated snapshot testing across locales and devices and unit tests that exercise complex user flows without UI automation. An app environment struct centralizes globals for easy stubbing, and generated lenses via SourceKit reduce boilerplate.
AI-written summary · about
chapters (15)
- 0:00Introduction and team background
- 1:05Talk overview and principles
- 2:53Separation of effects from purity
- 6:47Co-effects and their surfacing
- 11:04Coding to the interface you wish
- 13:17Analyzing UI kit limitations
- 15:05Lenses for immutable data
- 17:36Applying lenses to UI kit
- 21:49Principles we let go
- 24:37Benefits of functional programming
- 27:06Replacing storyboards with playgrounds
- 30:18Snapshot testing in practice
- 32:07Event tracking and accessibility
- 34:35Newfound love for UIKit
- 36:23Conclusion and Q&A
