
Episode 13
013: Make Impossible States Impossible
We discuss two classic talks and how to apply the ideas of Make Impossible States Impossible to your codebase.
September 21, 202056m 43s
Audio is streamed directly from the publisher (cdn.simplecast.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
The talks
- Make Impossible States Impossible from Elm Conf 2016
- Make Data Structures from Elm Europe 2018
- Elm Radio Episode 2: Intro to Opaque Types
Dealing with Impossible States
- Building up a "truth table" of possible states (see Evan's guide Types as Sets)
- Which rows are invalid?
- Create a new type with only the valid ones possible
More references
Tereza's
line-chartspackageTereza's elm Europe talk
Snapshot testing (also called Approval Tests)
Jeremy Fairbank's Boolean Blindness talk