3 ms·
To me SPAs were useful for one thing: to establish that JSON is the only blessed format for FE-BE communication. Back before the age of SPAs we had those "dyna
by Tade0 6y ago
To me SPAs were useful for one thing: to establish that JSON is the only blessed format for FE-BE communication.
Back before the age of SPAs we had those "dynamic" apps which updated parts of the DOM by firing requests to the backend, getting a piece of rendered HTML and just throwing it there.
It was an absolute nightmare to maintain and I'm happy we're past that.
As for server rendering, I've been getting good results with Sapper.js [0]. Here's an example of a webcomic page I started doing for a friend of mine, but it never took off:
https://dev.chordsandcordials.com https://dev.chordsandcordials.com
It's a pure HTML static web page, which started off as a server-side-rendered app, but with Sapper's export tool I didn't actually need to deploy the backend, since the content of each page is deterministic with respect to the URL.
My friend is not technical, but understands what FTP is and is able to edit a JSON file, so that's how we went about this.
[0] https://sapper.svelte.dev/ https://sapper.svelte.dev/
- empthought 6y ago> Back before the age of SPAs we had those "dynamic" apps which updated parts of the DOM by firing requests to the backend, getting a piece of rendered HTML and just throwing it there. > It was an absolute nightmare to maintain and I'm happy we're past that. Yeah, this model was adopted by noted failure GitHub and look where it got them.
- Tade0 6y agoMany successful businesses are a nightmare to maintain and the fact that they are successful doesn't make them less like that - if anything it makes them more like that. Hell, I used to work for one such business, namely CKEditor.