5 ms·
If it's obsolete, what should replace it?
by dimgl 11y ago
If it's obsolete, what should replace it?
- jessaustin 11y agoHere's one idea: http://cycle.js.org/model-view-intent.html http://cycle.js.org/model-view-intent.html
- DonHopkins 11y agoIt's not just about replacing the controller, which nobody understands or agrees on [1] -- it's about getting away from the idea that you can oversimplify user interface architecture down to a holy trinity of just three elemental concepts. You could just as well ask "If Earth, Wind and Fire [2] are obsolete, what replaces them?" There's more to modern chemistry than Earth, Wind and Electricity. [1] http://c2.com/cgi/wiki?WhatsaControllerAnyway http://c2.com/cgi/wiki?WhatsaControllerAnyway [2] https://en.wikipedia.org/wiki/Classical_element https://en.wikipedia.org/wiki/Classical_element
- jessaustin 11y agoWith Cycle MVI can be just a guide for getting started. (More pejoratively, a crutch.) I regularly find the intent()-model() interface getting too verbose and boilerplatey so I just munge the two pure functions together into one. So far it's made sense to keep view() separate, however.