3 ms·
By providing the data in a format that any consumer can understand. JSON, very often.
by redcobra762 3y ago
By providing the data in a format that any consumer can understand. JSON, very often.
- jabradoodle 3y agoBut your front end is still coupled to the structure of that JSON, which is often fine, but it is coupling
- redcobra762 3y ago“Couples” means two-way. Of course your front end will depend on your backend, the problem arises when they become interdependent; when you can’t develop one without making changes to the other. In this sense a frontend and a backend can be entirely independent, and in every sense the backend should be independent of the frontend.
- jabradoodle 3y agoIt isn't entirely independent if a change in your backend can completely break your frontend. Your using coupling as if it is a dirty word that means you've failed.