News for hackers. Stuff that matters.
Re:You Shouldn't Start with an SPA by jabradoodle on Friday February 02, 2024 @10:57AM (#39230082)
How can it operate completely independently if the front end requires data in a format it understands to perform logic on.
Re:You Shouldn't Start with an SPA by redcobra762 on Friday February 02, 2024 @11:09AM (#39230254)
By providing the data in a format that any consumer can understand. JSON, very often.
Re:You Shouldn't Start with an SPA by jabradoodle on Friday February 02, 2024 @11:21AM (#39230446)
But your front end is still coupled to the structure of that JSON, which is often fine, but it is coupling
Re:You Shouldn't Start with an SPA by redcobra762 on Friday February 02, 2024 @11:27AM (#39230557)
“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.

Re:You Shouldn't Start with an SPA by jabradoodle on Monday February 12, 2024 @07:15AM (#39343978)
It 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.