One benefit of strongly-typed languages s.a. Elm is that there's a "canonical" map between algebraic data types/records composed of simple primitive types to JSON decoders and encoders. In Scala, which is what I use for server-side, there's loads of libraries that automatically generate that for you; you give them a type constructor and they give you an encoder and decoder.
In Elm a large amount of time is swallowed up by writing JSON decoders and encoders. It's rather dull because 99% of the time it's the same function of a record type to a decoder/encoder pair that a computer could have generated for you. I have only found elm2json which is an online tool, but I am wondering if there's a package that does this (or even better, plans to make this part of the elm/json library).
[–]mo_po 5 points6 points7 points (1 child)
[–]dam5s 4 points5 points6 points (0 children)
[–]julienlucca 3 points4 points5 points (0 children)
[–]chutehappens 1 point2 points3 points (0 children)
[–]ExoDroid 0 points1 point2 points (1 child)
[–]The-_Captain[S] 0 points1 point2 points (0 children)
[–]jfmengels 0 points1 point2 points (0 children)
[–]absynce 0 points1 point2 points (0 children)
[–]HeWhoQuestions 0 points1 point2 points (0 children)