Joël’s clear, well-reasoned writing explains how to solve common issues and leverage Elm’s type system.
Here are 6 timeless articles from Elm’s “Coach Q”:
If you come from languages that don’t have union types, it’s natural to reach for the familiar
String types to model your data.
In Elm, we can do better! Joël uses concrete, clear examples to show us how.
Elm makes certain bugs impossible by making you declare a nullable value explicitly.
But knowing when and how to use the
Maybe type is its own skill. Joël explains clearly what to do in the most common situations.
Maybe is useful, but using it for each instance of a nullable value can overwhelm your codebase.
Joël shows how to make maintenance easier and how to model for more clarity.
Maybe with types that have their own null states can make your program states ambiguous.
Joël provides helpful alternatives and makes a case for when
Maybe (List a) is useful.
Generating random values in Elm is a challenging beginner topic. How do you produce random values when all functions are pure?
Joël helps introduce the
Generator type and breaks the problem down into simple steps.
Joël shares helpful tips for “seeing into” decoders.