Eternally Curious. Life Hacker. Programming Addict.
Let’s skip on what and focus on why Functional Programming
How to Decode JSON in Elm Part 2
Part1
import Json.Decode as D exposing (Decoder)import Json.Decode.Pipeline as Dimport Json.Encode as E exposing (Value)
Easily decode any JSON to Elm type alias, union type, singleton type constructors. And any nested combination of these.
In Elm, JSON encoding and decoding is quite easy as opposed to what people think. The main problem is lack of good examples. I…
From “Not interested” to “Interested”
This beautiful poem hit home, and made me realize why I am afraid of any long-term relationship.
Yup! you heard it right. No variables, operators, numbers, booleans, objects, control structures. Absolutely nothing but but plain old javascript functions.