Live data from Hacker News

Turbolinks: SPA-like Experience without the SPA-framework Hassle

goiabada.blog

1–10 of 97 posts

Re: Turbolinks: SPA-like Experience without the SPA-framework Hassle

#4
Yes, you can. Maybe you even should, because then you at least understand all the moving parts. Because there are way too many shitty SPAs out there that break functionality (Twitter and Facebook when hitting the back button) or are annoyingly slow and unreliable (iTunes Connect, Play Developer Console). Read [1] to see all the disadvantages and understand them. Then maybe build an SPA.

[1]: https://adamsilver.io/articles/the-disadvantages-of-single-p...

Re: Turbolinks: SPA-like Experience without the SPA-framework Hassle

#6
I don't think you'll find anyone who thinks it's hard to build 1 SPA without a framework.

The thing is that if you build 2, 3, 100, you'll find yourself doing the same stuff over and over again (and always better than the previous time, so that you'll want to replace all your old code, which is now obsolete), and that's when frameworks are useful.

Re: Turbolinks: SPA-like Experience without the SPA-framework Hassle

#7
Absolutely. It's really not that hard. I did it with the first version of my little meeting agenda app Meeting Rainbow. I rewrote the UI using Angular 1.4 later, and honestly it wasn't any easier using Angular than no framework. Angular just made things different, and depending on your opinion made the code easier to understand (though both versions are several years old at this point and far from what I'd consider a good codebase.)

Re: Turbolinks: SPA-like Experience without the SPA-framework Hassle

#8
From my point of view SPA and solid backend APIs go hand in hand. I see the main reason to use a SPA is to decouple front- and backend.

Doing so allows you choose a new frontend after some years while keeping the backend - or rewriting performance critical backend code while reusing the frontend.

Do you think the SPA-ish look and feel really is the key? That would surprise me.

It is more of an architectural design choice to me.

Post reply on HN