3 ms·
This separation of concerns is also good if you have both a web app and native mobile app. The server side ideally puts forth an API useful for both;
by dangoor 8y ago
This separation of concerns is also good if you have both a web app and native mobile app. The server side ideally puts forth an API useful for both;
- sbov 8y agoOur controllers use APIs. This was common before SPAs became all the rage.
- dangoor 8y agoIndeed, that's true. While I'm not saying they're good for everything, one thing I like about SPAs is that the server can just serve up an API that is usable by both web and mobile clients. No duplication of templating/view logic between server and client as often happens when the server is serving up HTML.
- deleted 8y ago[deleted]