News for hackers. Stuff that matters.
Re:The Return of the 90s Web by DoubleGlazing on Thursday June 18, 2020 @05:26PM (#23568218)
Maybe I'm missing something, the article isn't very clear. One of the reasons why we have front end apps pulling from an API is because it allows for interoperability.

The same API that serves data to the web browser can serve that data to mobile apps and to third parties as well.

The idea of bringing HTML rendering back on to the server just doesn't seem useful to me.

Re:The Return of the 90s Web by JohnBooty on Thursday June 18, 2020 @05:52PM (#23568504)

    One of the reasons why we have front end apps pulling
    from an API is because it allows for interoperability.

    The same API that serves data to the web browser can 
    serve that data to mobile apps and to third parties as well.
I agree with the benefit of API interoperability, but I'd call that orthogonal to server-side rendering. Your server-side web app could be just another consumer of that repurposable API.

    The idea of bringing HTML rendering back on to the server 
    just doesn't seem useful to me. 
It's a streamlined developer workflow, for one. You have one renderer, not an infinite amount of client-side renderers. Easier one-stop-shopping debugging. And in reality, I feel that the promised performance gains of client-side rendering never truly materialized for many use cases.

For projects involving small teams and non-trivial amounts, this is a boon. Any backend dev can, at least, write code to spit out some semantically correct HTML. Somebody is going to need to work on the UI/UX at some point but not necessarily full-time.

Contrast with a client-side rendering approach. If there is any significant amount of backend engineering behind the site (there isn't always, of course) now you have two apps with two divergent skillsets and more often than not, you need a minimum of two developers.

Re:The Return of the 90s Web by Karrot_Kream on Thursday June 18, 2020 @05:34PM (#23568290)
That's if you're making an application, sure, but on the web I view all sorts of sites and most of them are just styled text containers, maybe with an optional way to mutate things. HN, Reddit, News, recipes, forums, galleries, these are things I regularly consume that don't need APIs to return content. For applications, like Facebook, it's understandable, but if you don't spend all of your time in Social Media, then you probably are not really using an application.
Re:The Return of the 90s Web by dndvr on Thursday June 18, 2020 @05:38PM (#23568328)
You must use old.reddit.com
Re:The Return of the 90s Web by Karrot_Kream on Thursday June 18, 2020 @05:43PM (#23568391)
On mobile I just use a client that requests data from the API and renders it for me. On desktop, yes, for now, but I'm in the process of writing views that load faster and don't require a browser.
Re:The Return of the 90s Web by deadbunny on Thursday June 18, 2020 @06:02PM (#23568624)
Maybe I'm being dumb (I'm a sysadmin, not a developer) but wouldn't you just shift those API calls to the server rendering the page rather than the browser?
Re:The Return of the 90s Web by astura on Friday June 19, 2020 @01:57AM (#23571434)
Yes
Re:The Return of the 90s Web by pgm8705 on Thursday June 18, 2020 @05:39PM (#23568348)
Having both is still an option with minimal effort. In Rails it can be as simple as adding .json to your request and you get the data, otherwise the HTML.
Re:The Return of the 90s Web by bdcravens on Thursday June 18, 2020 @05:36PM (#23568307)
You're correct, but for many companies, APIs and multiple interoperable clients are a YAGNI.
Re:The Return of the 90s Web by pmlnr on Friday June 19, 2020 @08:10AM (#23573586)
You mean the locked down apis that are not available to the puclic? Those can rot in hell.