|
|
|
|
|
by nschiefer
1156 days ago
|
|
(Disclaimer: I’m plugging my own work here ;-)) You might enjoy this project, which ties to do basically exactly what you described: stick everything in a database and let it drive the app: https://riffle.systems/essays/prelude/ It’s still very much a research prototype but we should have some more writing out soon. |
|
This is a big value of recent server-centric frameworks like Phoenix LiveView that provide ability to have code and data co-located and not have to duplicate so much on client and server as with SPA's while attempting to maintain some base level of client interactivity. But seems always a tension between leveraging the full power of client and full power of server.
You might find this article [0][1] informative. It disputes the idea that UI's are "pure functions of the data/model" in a compelling way, and points to this incorrect assumption as having introduced some complexity/pain in how frameworks like React work.
[0] https://blog.metaobject.com/2018/12/uis-are-not-pure-functio...
[1] https://news.ycombinator.com/item?id=31979347