| ▲ | boomskats 8 hours ago | ||||||||||||||||||||||
Sounds like you're referring to some specific examples of poorly implemented apps rather than the concept of SPAs as a whole. For your example, the point of that div soup is that enables behaviours like row/column drag&drop reordering, inline data editing, realtime data syncing and streaming updates, etc. - there is no way to implement that kind of user experience with just html tables. There's also huge benefit to being able to depend on clientside state. Especially if you want your apps to scale while keeping infra costs minimal. I get the frustrations you're talking about, but almost all of them are side effects of solutions to very real UX problems that couldn't be solved in any other way. And to be clear, I'm not saying that people building SPAs when all they needed was a page showing 10,000 rows of static data isn't a problem. It's just a people problem, not an SPA problem. | |||||||||||||||||||||||
| ▲ | hnlmorg 7 hours ago | parent | next [-] | ||||||||||||||||||||||
> all of them are side effects of solutions to very real UX problems that couldn't be solved in any other way. Except they had been solved in other ways and the problem was people insisted on using web technologies to emulate those other technologies even when web technologies didn’t support the same primitives. And they chose that path because it was cheaper than using the correct technologies from the outset. And thus a thousand hacks were invented because it’s cheaper than doing things properly. Then along comes Electron, React Native and so on and so forth. And our hacks continue to proliferate, memory usage be damned. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | phkahler 3 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
>> I get the frustrations you're talking about, but almost all of them are side effects of solutions to very real UX problems that couldn't be solved in any other way. Any other way? Just build a web app with emscripten. You can do anything. For a while GTK had an HTML5 backend so you could build whole GUI apps for web, but I think it got dropped because nobody used it. | |||||||||||||||||||||||
| ▲ | friendzis 6 hours ago | parent | prev [-] | ||||||||||||||||||||||
> rather than the concept of SPAs as a whole. This is the whole concept of the SPA - make a page behave like multiple pages. The premise itself requires breaking absolutely everything assuming that content is static. > There's also huge benefit to being able to depend on clientside state. Especially if you want your apps to scale while keeping infra costs minimal. Um... I'm old enough to remember the initial release of node, where the value proposition was that since you cannot trust client data anyway and have to implement thorough checking both client and server side, why not implement that once. > I get the frustrations you're talking about, but almost all of them are side effects of solutions to very real UX problems that couldn't be solved in any other way. Let me introduce you to our lord and savior native app | |||||||||||||||||||||||