3 ms·
I sometimes wonder if the Javascript world has some sort of divine significance, as though they carry the weight of all the developer sins in the world for some
by javascriptdante 3y ago
I sometimes wonder if the Javascript world has some sort of divine significance, as though they carry the weight of all the developer sins in the world for some particular transcendental purpose. After all, Dante's nine circles of hell are insufficient for programmers who are able to recurse infinitely. How much further can we go?
Consider the descent down, and the contradictions therein, considering JUST data concerns for brevity:
1. SPA ostensibly being marginally more data efficient by shipping the markup/interactivity first, and fetching only the data as needed.
2. REST being too inefficient and cumbersome in practice, the rise of GraphQL to minimize payload over the wire.
3. Lack of SSR impacting SEO, the need to render on the server and sending HTML over on initial payload. (which btw goes against (1) for first render)
4. Impedance mismatch creeping in, seemingly necessitating the need to send data along with the rendered HTML for hydration purposes (again, going against the idea of saving data over the wire)
I eagerly await, from the sidelines, news from even deeper depths. Perhaps shipping the entirety of the server code that operates then against a local SQLite database? Which is then kept in sync with the authoritative copy "on the edge"? After all, if simple old SSR is beneath consideration, than we would do well to disdain the notion of a boring centralized database as well.
- lioeters 3y ago> shipping the entirety of the server code that operates then against a local SQLite database For sure this new circle of hell is emerging. The browser is metastasizing into what resembles an application platform, operating system, a sandboxed virtual machine. It's becoming quite capable too, including a local file system (Origin Private File System), widely supported now. > kept in sync with the authoritative copy "on the edge" There could be a new generation of portable, cross-platform and local-first apps built with HTML, CSS, and/or any language that compiles to WebAssembly. Perhaps after decades of penance in the flames of their own making, the web world will find redemption by re-discovering and re-inventing ancient dreams of universal computational media, networked software objects inter-communicating with distributed data.. Speaking like a true denizen of the ninth circle.
- cco 3y agoYour first sentence is sublime writing. It made me laugh and cry.
- giaour 3y ago> Perhaps shipping the entirety of the server code I believe you're describing Blazor: https://learn.microsoft.com/en-us/aspnet/core/blazor/?view=aspnetcore-7.0 https://learn.microsoft.com/en-us/aspnet/core/blazor/?view=a...