3 ms·
Another big reason is that developers want to deliver a specific user experience that is simply not possible with the default page loading functionality of most
by osrec 6y ago
Another big reason is that developers want to deliver a specific user experience that is simply not possible with the default page loading functionality of most browsers.
- masa331 6y agoYou mean the specific experience when back buttons aren't working? Or when urls don't make sense? Or when you can't just share the content by copying the url because it no longer identifies the conten? Or when you can't say if something is loading, missing, or broken? This is my user experience with SPAs regarding navigation.
- robertoandred 6y agoUse better SPAs.
- osrec 6y agoAgree. There are a lot of bad SPAs out there, but that's a testament to how easy they are to get started with and their popularity. That doesn't mean good SPAs don't exist - many do!
- ehutch79 6y agoIf an spa is behaving like that, the coders have failed at their job.
- freehunter 6y ago"PHP is fine, it's just poor developers making bad sites". And then people stopped using PHP.
- arcturus17 6y agoPeople stopped using PHP in which planet?
- freehunter 6y agoExactly.
- osrec 6y ago> And then people stopped using PHP. Evidence? In my experience, PHP seems to be more in use now than ever.
- freehunter 6y agoA quick HN search shows PHP’s unpopularity. Check the Stack Overflow survey if you need a second opinion. Conversely, I’m gonna need evidence that PHP is more popular than ever because that absolutely is an extraordinary claim.
- ehutch79 6y agoPHP wasn't good, fine maybe, though I understand it's better now. it was kind of slow, and all the functions were inconsistent, and had a lot of foot-guns. It was easier to write more robust code and model-view-controller code in other languages. (not that it was impossible in php)
- freehunter 6y agoIt’s hard to make the claim that PHP is a bad language and also claim that very similar complaints don’t also apply to Javascript. They’re both languages defined by their popularity in spite of how poor the language actually is.
- ehutch79 6y agojavascript is a dumpster fire. unfortunately it's the only actually viable language in the browser.
- chipotle_coyote 6y agoThat’s arguably the best reason to develop an SPA. But I don’t think the linked article is arguing against that as much as arguing against using “SPA think” in places where the user experience really doesn’t require it. There are web sites which are basically magazines/blogs whose reading functionality relies on JavaScript. Building a web site like it’s an app may give some advantages to the developers, but it’s almost always a slower, and sometimes more fragile, experience compared to just delivering HTML.