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).
A journey into requiring files via $PATH and $LOAD_PATH.
Avoid some tricky edge cases when decorating ActiveRecord models.
Pagination of APIs is a performance optimization trick. As a consumer, you may want to model things with a lazy stream instead.
How to test integrations with a third-party API.
How helping others made me a better developer.
Want to build a random generator? A JSON decoder? Combine multiple Maybes into a more complex one? Do it all with this one simple trick.
A step-by-step guide to implementing a custom onChange
event in Elm 0.18.