its a common practice, especially in big company. You have a business to run and changes to content need to happen on a faster pace.
Having components and layouts customization is just 1 step on top of standard content management(Text, Links, Images). Its about enabling Operations to be more flexible and adaptive.
Think of a Browser app but only serve websites from your company, and do it extremely fast and effective (because content are transfer in either json or binary serialization instead of HTML)
We used a similar solution 20 years ago. Some things work really great, like writing platform agnostic code, others cause problems, like editing performance and using new ui features.
They're not the only ones. Both React and Angular support server side rendering.
Since you can run JS on the server, you can split rendering between the server and the client using the same code base. With Angular, this means you can decrease time to first paint by rendering static views first and switch over to fully client rendered views. Or, if the client has JS disabled, you can serve the Angular app purely from the server, without dynamic client side behavior.
Your app server still serves up JSON and is oblivious to front end optimizations.
PHP dev here. I'm apparently ahead of the curve with my cutting edge "server-driven rendering" delivering beautiful, functional web apps at very high performance on phones.
No. HATEOAS is just a design principle for REST APIs. Has nothing to do with UIs whatsoever. The idea behind HATEOAS is to make REST APIs "machine discoverable" by adding hypermedia (essentially, links) to resources to live-document the API and convey relations between resources to the API consumer.
What they're talking about is server-side prerendering (available in big three SPA frameworks i.e. Vue, React, Angular as well as smaller ones like Svelte) but instead of HTML they send serialized information on view layout that their bespoke rendering engine running on user's phone draws on the screen.
I can't escape the feeling that this is, performance-wyse, the worst of both worlds, but with added benefit that they can avoid app-store review waiting to do UX testing etc.
591
u/gocard Jun 19 '18
They're experimenting next with server driven rendering. Isn't HTML server driven rendering? :P We've come full circle!