A single-page app is almost always worse than a multi-page app
1–10 of 152 posts
Re: A single-page app is almost always worse than a multi-page app
#2Re: A single-page app is almost always worse than a multi-page app
#3Re: A single-page app is almost always worse than a multi-page app
#4Re: A single-page app is almost always worse than a multi-page app
#5I want to hug Greg for this article and especially this paragraph at the end: "Third, if you’re implementing a very complicated component then you can use React just for that component. For instance, if you’re building a chat box then there’s really no need to implement your login page in React."
Making my login page driven by HTML and postbacks, rather than a straightforward REST(-ish) API talked to by an SPA, makes it nontrivially more difficult to establish the kind of separation of concerns necessary to then build a mobile application out of it (and as it happens, React is pretty useful there with React Native).
Re: A single-page app is almost always worse than a multi-page app
#6"I think this is a very underappreciated aspect of SPAs. Stateful software is always more difficult to work with than stateless. The frontend state is added on top of the already-existing backed state. This requires more development time, increases the risk of bugs, and makes troubleshooting more difficult."
But the thing is, almost as soon as you have any kind of significant user input to handle (multipart forms, date pickers, autocomplete elements, conditional input elements) you are instantly dealing with complex frontend state. And then your choice is not "SPA vs plain HTML forms," it becomes "SPA vs (ad hoc jQuery tangle + ad hoc server side endpoints that know to speak to random jQuery UI libraries)."
I find the ad hoc jQuery+endpoint tangle much harder to reason about than something built with a front end framework and a more uniform API.
Re: A single-page app is almost always worse than a multi-page app
#7Re: A single-page app is almost always worse than a multi-page app
#8The experience was wonderful and highly recommended. I think it's perfect for small teams who are more productive with traditional/backend tech.
Re: A single-page app is almost always worse than a multi-page app
#9So, the OP argues that SPAs introduce unnecessary frontend state: "I think this is a very underappreciated aspect of SPAs. Stateful software is always more difficult to work with than stateless. The frontend state is added on top of the already-existing backed state. This requires more development time, increases the risk of bugs, and makes troubleshooting more difficult." But the thing is, almost as soon as you have…