When you’re stuck, the best solution is often to represent the problem in a different medium.
Elm’s type system gives us some great tools for modeling gamedev.
In gamedev, decoupling the in-game world from the real world makes math easier.
Write more confident code to avoid viral Maybe
taking over your project.
Leverage the core mechanics of Maybe
to clean up your nested cases.
Understanding why we use factories helps us write faster, more readable tests.
Elm JSON decoding in 5 common scenarios
Map functions are hard to “get” in the abstract. This looks at two mental models that helped me understand them better.
Clean up Maybe by modeling multiple shapes of data with union types.
Refactor common Boolean smells using enums (union types).