2 ms·
Thanks, that makes sense. Interesting perspective on the UI = F(data), I did not know that. I still wish the mechanics were a bit more... intuitive... I guess?
by kflgkans 2y ago
Thanks, that makes sense. Interesting perspective on the UI = F(data), I did not know that. I still wish the mechanics were a bit more... intuitive... I guess? Personally, I'm a big fan of The Elm Architecture [1]. I felt that is a very nice way to separate state and logic. But I'm not such a big fan of Elm itself (subjectively).
[1] https://guide.elm-lang.org/architecture/ https://guide.elm-lang.org/architecture/
- skydhash 2y agoThere was a great interview on ACM Queue [0] where they explain that paradigm. As a rule of thumb. Try to keep everything functional, and if you want to have state, keep it contained to its component. [0]: https://dl.acm.org/doi/10.1145/2984629.2994373 https://dl.acm.org/doi/10.1145/2984629.2994373