4 ms·
It's like all of these posters have never worked on a large-scale app, acting like the decision to lazy load content is made just because we don't have anything
by dntrkv 5y ago
It's like all of these posters have never worked on a large-scale app, acting like the decision to lazy load content is made just because we don't have anything better to do.
- epistasis 5y agoSure, there's lot of code to write, but is the end goal writing code, or making a web app that's great for users?
- dntrkv 5y agoNot sure I get what your comment is saying, but: > making a web app that's great for users That's what the goal is, and that's what SPAs enable. You can't build a modern web app without it being a SPA. The two are basically synonymous, I don't understand how there is even a discussion around this. No user wants to navigate to another page and lose their context. That's why the industry moved to SPAs. If you ever tried to manage complex UI state in the jQuery/Backbone/Knockout/etc days you would see that a React SPA is a huge improvement. It actually enables devs to build complex apps without getting bogged down in bugs.
- epistasis 5y ago> The two are basically synonymous, I don't understand how there is even a discussion around this. This erroneous belief is the very source of the problem. Here's a user, telling you that I'm sick of lag from weird multistage loads in apps that gain nothing from keeping local state in browser JavaScript variables. I have never, literally never, thought that a good experience came from a SPA. Give me HN and it's 2000s dead simple tech any day. Or compare the absolute shit-show of new Reddit in an SPA to old Reddit. Managing complex UI state is the problem.
- edgyquant 5y agoAs a counter point: were I to write a hacker news clone it would be an SPA. You wouldn’t know from using it, because I’d break it down into routes using e.g. react router (but that’s really just for organizational reasons) and it’s simple HTML and plain text so there’s really no need to have loading screens. An SPA doesn’t have to be bloated and show loading screens and the aforementioned grey boxes. I’ll also add that Reddit’s problem doesn’t stem from being an SPA, it still loads state, etc from url navigation just as much as it keeps the state as you browse (depending on where you go on the site.) Reddit’s problems stem from (for some reason I can’t fathom) being the worst UI implementation I’ve had the displeasure of using recently and constantly adding features (before bugs from the last round of useless features are fixed) in an effort to converge towards some kind of weird Facebook clone.
- dntrkv 5y ago> Here's a user, telling you that I'm sick of lag from weird multistage loads in apps that gain nothing from keeping local state in browser JavaScript variables. You do realize the alternative is the same amount (or more) of waiting with a blank screen, right? > Or compare the absolute shit-show of new Reddit in an SPA to old Reddit. You are conflating bad design / UX with SPAs. You can build a SPA that is exactly the same as the old Reddit. Reddit is trying to monetize their site, many of their shitty UX decisions are done with that goal in mind. > Managing complex UI state is the problem. ...What? Unless you are talking about stripping web apps of their functionality, you can't avoid this. You will have complex UI state. It's just a question of whether you use some shitty, convoluted approach of the olden days, or you use a modern solution that makes this faster and easier. Anyways, you do realize you are in the minority, right? Most users have an expectation of how modern web apps should function. Redirecting a user for simple tasks doesn't cut it. If SPAs didn't provide a better experience, and in turn, better conversions, companies would not adopt them.
- rimliu 5y ago> You are conflating bad design / UX with SPAs. Not really. Bad UX is what is really synonymous with SPAs.
- phist_mcgee 5y agoA wildly erroneous assertion, and one that is backed up with zero facts on your part.
- hackerfromthefu 5y agoOh la .. >> You can't build a modern web app without it being a SPA. Lots of people can >> I don't understand how there is even a discussion around this. This is the difference that makes the difference