
Episode 8
008: The Builder Pattern
We discuss the tradeoffs of using the builder pattern and how to get started with it.
July 13, 202057m 56s
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
What is a Builder?
- Init a builder data structure with a set of reasonable defaults
- Customize those defaults through a series of chained function calls
- Builders have the same type for the return type and final argument, so that they work nicely in a pipeline
Resources and Examples
- Luke Westby's http-builder package
- Brian Hicks' Robot Buttons from Mars talk
- elm-review package docs
- elm-pages/phantom builder live coding
- Richard Feldman's Oslo Elm Days keynote