Elm Weekly - Issue #130
Making impossible state impossible, adding event listeners to DOM nodes that don't yet exist, a collection of code patterns, and a comparison of Elm & Rust by Richard Feldman.
Articles and Discussion
elm-radio Episode 13: Make Impossible States Impossible — elm-radio.com
Jeroen Engels and Dillon Kearns discuss two of Richard Feldman's talks, and how to apply the ideas of Make Impossible States Impossible to your codebase.
Adding event listeners to DOM nodes that do not yet exist — odone.io
Riccardo Odone gives a couple of tips for adding event listeners to DOM nodes that are created at some point in the future: you can either use setTimeout or rely on the DOM mutation observer API.
Tools and Projects
Sebastian Porto started a collection of code patterns such as opaque types and the builder pattern.
Talks
That's it for this week!
Please help me offset the costs of Elm Weekly and support my Elm work by sponsoring me on GitHub.
If you have something you’d like to submit for an upcoming edition, tweet @elmweekly with a link, send an email through to elmweekly@korban.net, or just hit Reply.