Elm Europe 2017 - Evan Czaplicki - The life of a file
Video Statistics and Information
Channel: Elm Europe
Views: 51,914
Rating: 4.956718 out of 5
Keywords: elm, elm Europe, 2017, conference, talk, keynote, Evan Czaplicki
Id: XpDsk374LDE
Channel Id: undefined
Length: 47min 1sec (2821 seconds)
Published: Thu Aug 24 2017
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
The moment you realize that the only thing more friendly than elms compiler messages is itโs creator
Really great talk. Definitely bookmark-worthy to go back and watch again.
This part is certainly interesting and IMO is the start of a conversation with the UX/Design team.
If the user experience of these two checkbox list views should truly be the same and consistent (they have the same invariants) then that is an opportunity for reuse. Implement both features and reuse the same view functions if they have the same invariants.
Now let's say requirements change. In one view there is a behavioral change. We need nested checkboxes. The invariants for that module changed. That's fine. This is the start of a conversation. Should the fruits checkboxes exhibit the same behavior? The fruits list still need the original behavior? Ok, let's create a new module that allows for nested checkboxes and guarantee the invariants we want for the nested checkbox module. We are no longer reusing the same code because there is a significant difference of invariants.
Requirements change again. The "fruits chooser" needs to allow a maximum of two fruits. Ok, no big deal. That's another convo with the UX design team because the invariants changed again. Does the original checkbox list need to exhibit bounded behavior? No? Ok let's make a module for a bounded checkbox list and discard the original checkbox list module.
I don't think the fact that we're talking about reusable views makes it different than any other Elm code. We're still talking about reusable functions and creating modules that maintain invariance.
Haha I was wondering when this was going to be uploaded. This is a great sequel to impossible states