Remix.run Logo
sam0x17 12 hours ago

or maybe we could do this revolutionary thing where we use code on the server side to generate different HTML for different requests!!!

we've come full circle <3

hu3 10 hours ago | parent | next [-]

I think re-rendering headers, menu and footers for CRUD applications on every page change is suboptimal for CRUD web apps.

An easy win is to replace just the page main content and keep headers, menu and footers between navigations in the system.

port11 5 hours ago | parent | next [-]

Okay, but, like, how much worse is it to re-render the whole thing? And it's not like Turbo hasn't been around for more than a decade, doing exactly that, for free, automatically.

purerandomness 9 hours ago | parent | prev [-]

That's a very good idea, and exactly what HTMX (and similar implementations) do.

mdaniel 10 hours ago | parent | prev | next [-]

  if (request.headers["user-agent"].Matches("Safari")) {
     // wheeeee
  else if (...Matches("Firefox")) {
     // those where good times
jonwinstanley 11 hours ago | parent | prev | next [-]

Rails and Laravel devs happily still live in this world a lot of the time :-)

brianmcc 11 hours ago | parent | prev [-]

Perl CGI FTW! :-D