Programming Elm (@programming_elm) profile picture

A book about @elmlang by @elpapapollo and published by @pragprog.

Joined October 2017
Use Html.Events.on along with Html.Events.targetValue and custom decoder to create an event handler that only produces valid custom type values. #elmlang #functionalprogramming #webdev #webdeveloper #frontenddeveloper #programming pragprog.com/book/jfelm/prog…
3
8
Use Dict.update to easily update a value in a Dict if the key already exists or insert a new value if the key doesn't exist. #elmlang #functionalprogramming #webdevelopment #webdeveloper #frontenddeveloper #frontenddevelopment pragprog.com/book/jfelm/prog…
5
5
Reduce the number of iterations with filter and map on lists by using the filterMap function to filter and map at the same time. It's also useful for unwrapping Maybes inside a list. #elmlang #functionalprogramming #webdev #webdeveloper #frontenddeveloper pragprog.com/book/jfelm/prog…
4
6
If you find yourself duplicating functionality with different record types, create an extensible record with shared fields and accept the extensible record in a reusable function. #elm #elmlang #functionalprogramming #webdevelopment #frontenddevelopment pragprog.com/book/jfelm/prog…
5
8
When storing data and errors separately, you can have invalid states with data and error present. Instead, use a custom type for each scenario. More tips in pragprog.com/book/jfelm/prog… Also see package.elm-lang.org/package… #elmlang #webdeveloper #frontenddeveloper #functionalprogramming
3
6
Have a custom type and Msg constructors that map 1:1 with the custom type's constructors? Simplify your code with one message constructor that wraps the custom type. Find other great scaling tips in the book. pragprog.com/book/jfelm/prog… #elmlang #elm #webdev #functionalprogramming
7
9