News for hackers. Stuff that matters.
Re:Modern Front-end in Rails by nicolasMLV on Friday December 08, 2017 @11:35AM (#15879897)
Turbolinks is the official Front-end part of Rails and it works very well, but there is no mention of it in the article neither in the hackernews comments, so i think it is under-used.

There's also turbolinks-ios and turbolinks-android, I built my mobile apps with minimal knowledge of Swift and Kotlin.

Re:Modern Front-end in Rails by captain_crabs on Friday December 08, 2017 @11:40AM (#15879937)
I've transitioned from rails-everything to working exclusively with front-end frameworks and libraries (react, angular, polymer), and I'll tell you this still: if I'm working in rails, I use turbolinks. It's a wonderful approach, way under-appreciated.

When two or more things on the page need to know about each other/you require a high-fidelity interaction that you can't easily handle with just it, then yeah - reach for vue, react, or what have you. But no need to start there! Use those as targeted air strikes

Re:Modern Front-end in Rails by WaxProlix on Friday December 08, 2017 @01:23PM (#15880689)
I think the issue is that with out of the box rails apps, there's not a lot of opportunity to perform one of these 'targeted air strikes'. Emergent requirements incentivize quick solutions and you can end up with a bunch of ad-hoc foundation components and really bad jquery-ui slapped around in erb files.

At least, that's been my (very limited) experience with it.

Re:Modern Front-end in Rails by captain_crabs on Friday December 08, 2017 @05:11PM (#15882526)
I've found it easier to just drop in `react-rails` and build out react components for certain situations than to try and string a bunch of jquery together.
Re:Modern Front-end in Rails by pqdbr on Friday December 08, 2017 @01:25PM (#15880701)
I love turbolinks as well. I can get < 100ms to screen with it without almost any extra effort.
Re:Modern Front-end in Rails by minor3rd on Friday December 08, 2017 @11:13PM (#15884248)
Have to disagree on this one for anything but the most basic apps (think blogs and lots of static content). I'd have rewritten my entire app over by now with the "targeted air strikes" approach.
Re:Modern Front-end in Rails by simplyluke on Friday December 08, 2017 @05:30PM (#15882655)
When turbolinks first hit most people went "oh it breaks jquery" and never touched it again.

Which is a shame considering how much it speeds most typical applications up by completely ignoring the mobile advantages.

Re:Modern Front-end in Rails by macandcheese on Friday December 08, 2017 @02:08PM (#15881066)
Turbolinks just "works" so easily out of the box - for most use cases of persisting header / footer / etc between pages your users will think it's a "true" SPA. Even comes with the customizable css loading indicator now to re-enforce that feeling of speed.