Re:Why Elm? [pdf]
by mistersys on Monday May 08, 2017 @06:32PM
(#14296246)
The parents of each of these elements have to manually map the state changes, they have to be aware of the internal state of the components, just as I was saying.
Go to the bottom, see how it manually maps the child events of the feed update? You have to duplicate that code for every single child component. All the other steps I described are there also.
Re:Why Elm? [pdf]
by rtfeldman on Tuesday May 09, 2017 @12:07AM
(#14297669)
Again, there are lots of counterexamples to what you're claiming. The technique you're saying "must" be done in "every single" case came up a grand total of once in the entire code base: the file you linked to.
Check this out: https://github.com/rtfeldman/elm-spa-example/blob/master/src...
Go to the bottom, see how it manually maps the child events of the feed update? You have to duplicate that code for every single child component. All the other steps I described are there also.