News for hackers. Stuff that matters.
Re:Single Page Application Is Not a Silver Bullet by JohnnyCrazy on Sunday February 04, 2018 @01:00PM (#16303862)
TBH most of the cons stated in this article are just because of bad programming, not because it's a SPA

> broken “back” button (sometimes it works properly, but in general people don’t trust it)

If your UX is good, the user will notice data is refreshed when going back. All current top tier SPA Frameworks have support for correct HTML5 routing.

> broken “open in a new tab” behaviour – people like to handle links in onClick handler, and browser can’t recognize it as a link (even if the majority of the links are valid, sooner or later you’ll encounter a non-link “link”)

Again, most up-to-date frameworks have a fallback by adding a normal href so you can still CTRL-Click it.

> sometimes broken “refresh” button – after refreshing you end up in a different UI (usually slightly, but still different)

I don't see a real disadvantage here, since you can simply store your state by manipulating the URL or even localstorage. So you even have the possibility to not store your state...But again, application design, not SPA

I do agree with TTI (at least on the first load) and bad performance on low end devices.

Re:Single Page Application Is Not a Silver Bullet by jordache on Sunday February 04, 2018 @01:14PM (#16303948)
No. Because it is an SPA, it means there is more work to restore the default behavior of the back button. That's the way he should have articulated his point.

You also mention HTML5 routing.. Ok now you have to configure your web server to properly parse the URL and understand what it's conveying.

Re:Single Page Application Is Not a Silver Bullet by Can_Not on Sunday February 04, 2018 @02:36PM (#16304432)
And all of that work is already done for you in all modern major SPA frameworks.
Re:Single Page Application Is Not a Silver Bullet by jordache on Sunday February 04, 2018 @04:51PM (#16305132)
Server side too?

Client side routing? Have you seen the huge chapter dedicated to routing for angular? You make it sound like it's no work

Re:Single Page Application Is Not a Silver Bullet by Can_Not on Sunday February 04, 2018 @05:40PM (#16305381)
> Server side too?

Yes

> Client side routing? Have you seen the huge chapter dedicated to routing for angular? You make it sound like it's no work

Haven't seen angular's, they were late to the SSR party.

Re:Single Page Application Is Not a Silver Bullet by bpicolo on Sunday February 04, 2018 @05:53PM (#16305444)
Server side is as simple as taking /app/* and having it hit your SPA
Re:Single Page Application Is Not a Silver Bullet by thehardsphere on Sunday February 04, 2018 @03:25PM (#16304696)
> TBH most of the cons stated in this article are just because of bad programming, not because it's a SPA

The worst programming is the result of choosing the wrong tools for the job. There is a class of jobs for which an SPA is entirely unnecessary.