News for hackers. Stuff that matters.
Re:Turbolinks: SPA-like Experience without the SPA-framework... by quantumofmalice on Monday December 11, 2017 @09:31PM (#15902602)
Turbolinks is OK, but I prefer intercooler for HTML-based apps because it gives me a lot more control:

https://github.com/LeadDyno/intercooler-js/

I don't use it for everything, but it's great for a lot of my work.

Re:Turbolinks: SPA-like Experience without the SPA-framework... by mhd on Tuesday December 12, 2017 @12:24AM (#15903195)
I've experimented with Intercooler, and it's a nice intermediate step between just enhancing a site with some jquery or vanilla JS and full-fledged SPAs.

This is almost a general theme in webdev, the middle ground is often left out, with things accumulating either on the complex or purposely minimalistic. Rails/Sinatra, Flask/Django, React/Angular... (and yes, I'm aware that it's slightly ironic that RoR is now my "monolith" end of things, given how light it was back when we were doing horrible things with Struts and J2EE)

Re:Turbolinks: SPA-like Experience without the SPA-framework... by quantumofmalice on Tuesday December 12, 2017 @12:38AM (#15903241)
I hadn't thought of it in those terms, but I definitely agree. I also like that I don't have to decide up front that I'm going to write my whole app using it and can add it in later on where it makes sense. I don't know what to call that, but it's nice.

I wouldn't try to write a video game or anything like that with it, but for most of what I do it gives me what I want with very little complexity.

Re:Turbolinks: SPA-like Experience without the SPA-framework... by triskweline on Tuesday December 12, 2017 @10:10AM (#15906055)
If you're looking for a little more control but don't want to go all-in SPA, also check out Unpoly:

https://unpoly.com/