3 ms·
My naive view is that this type of thing is done so that the server returns structured data from an API call, and then the client renders it however it sees fit
by orev 2y ago
My naive view is that this type of thing is done so that the server returns structured data from an API call, and then the client renders it however it sees fit. If the client is a browser, then it uses HTML. If the client is curl, then it pipes it to jq, etc.
However it seems like this idea has been taken to extremes and is being overused, and applications that do this for GUI elements are probably just badly designed.
- GardenLetter27 2y agoYeah, it helps to have one backend and then each client doing its own presentation for the web browser, phones, TVs, tablets, etc.
- timw4mail 2y agoIn many cases you could have a server-side client for your API calls, with a little client-side code for features that actually require it.