News for hackers. Stuff that matters.
Re:Building GitHub with Ruby on Rails by amrocha on Friday April 07, 2023 @05:05AM (#35479701)
Very true, but that's a frontend problem, not a rails problem.
Re:Building GitHub with Ruby on Rails by jeremyjh on Friday April 07, 2023 @07:24AM (#35480470)
These problems are always more common in server-rendered apps though, because front-end state is always a patchwork. And the Rails developers and community have a strong preference for this architecture.
Re:Building GitHub with Ruby on Rails by VWWHFSfQ on Friday April 07, 2023 @09:39AM (#35481451)
I observe the exact opposite. Server rendered UIs are far more often times up to date than client rendered apps.
Re:Building GitHub with Ruby on Rails by amrocha on Friday April 07, 2023 @02:34PM (#35485181)
I can't think of a single website that's real time and server rendered
Re:Building GitHub with Ruby on Rails by UlisesAC4 on Saturday April 08, 2023 @12:42AM (#35490596)
I do not have examples with me. But anything built with Elixir Liveview will be server rendered and will also be real time, with some gotchas though.

https://github.com/phoenixframework/phoenix_live_view

Re:Building GitHub with Ruby on Rails by jeremyjh on Saturday April 08, 2023 @07:19AM (#35492272)
Its not exactly server rendered, though. After the first page view all the server is rendering are json graphs of dom diffs to be applied by the client application. If you use the routing features then technically its an SPA.
Re:Building GitHub with Ruby on Rails by gls2ro on Friday April 07, 2023 @11:25AM (#35482576)
Mind you some parts of Github FE are React https://twitter.com/rauchg/status/1591464351990697984?s=46&t...
Re:Building GitHub with Ruby on Rails by int_19h on Friday April 07, 2023 @06:57PM (#35488169)
The upside is that you can link just about anything in GitHub, and those links work consistently and point at the exact right content. This is much less common with SPAs.
Re:Building GitHub with Ruby on Rails by amrocha on Friday April 07, 2023 @08:04PM (#35488822)
SPA =\= client rendering
Re:Building GitHub with Ruby on Rails by jeremyjh on Friday April 07, 2023 @09:24PM (#35489424)
I agree its a valid criticism of parts of the ecosystem, but a lot of people these days are using next.js, nuxt.js or sveltkit and those give you easy patterns to follow so that all those things work, basically for free. SPAs are better now than they were just a few years ago.