3 ms·
My biggest gripe with single-page apps is the lack of any sort of standard URL structure. With normal websites, even dynamic ones, you could pretty much put boo
by zo1 12y ago
My biggest gripe with single-page apps is the lack of any sort of standard URL structure. With normal websites, even dynamic ones, you could pretty much put bookmarks almost everywhere. And the only times where you couldn't was probably in spots where the developers didn't want you to for some odd reason (say an intermediate page within a signup wizard).
But single-page apps completely break that. It then becomes some sort of hit/miss issue of whether or not that specific implementation of a single-page app's dynamic URL will behave nicely. Will it post, will it alter something, will it complain and just send me back to the main page? I don't know, and the URL doesn't necessarily tell me that.
Ironically, this is how I came across this post. I was trying to find valid/genuine criticism of single-page apps.
- nacs 12y agoThat's more a gripe with badly-designed SPAs than all SPAs however. Many SPAs use the history API[1] to make a URL for everything -- Backbone, Angular[2] and such support this for example. React.js apps typically use some kind of router component that supports this (or they can use Backbone's Router). [1]: http://diveintohtml5.info/history.html http://diveintohtml5.info/history.html [2]: https://docs.angularjs.org/guide/$location https://docs.angularjs.org/guide/$location