News for hackers. Stuff that matters.
Re:Just Use HTML by sam0x17 on Tuesday September 16, 2025 @09:29AM (#45261982)
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

Re:Just Use HTML by hu3 on Tuesday September 16, 2025 @10:57AM (#45263195)
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.

Re:Just Use HTML by purerandomness on Tuesday September 16, 2025 @12:40PM (#45264584)
That's a very good idea, and exactly what HTMX (and similar implementations) do.
Re:Just Use HTML by port11 on Tuesday September 16, 2025 @03:49PM (#45267077)
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.
Re:Just Use HTML by hu3 on Wednesday September 17, 2025 @10:27AM (#45276240)
Yeah turbo and htmx is great for that.
Re:Just Use HTML by sam0x17 on Thursday September 18, 2025 @02:37PM (#45293356)
rails has been doing this with turbolinks (not even called that anymore) since like 2012
Re:Just Use HTML by mdaniel on Tuesday September 16, 2025 @11:03AM (#45263293)

  if (request.headers["user-agent"].Matches("Safari")) {
     // wheeeee
  else if (...Matches("Firefox")) {
     // those where good times
Re:Just Use HTML by jonwinstanley on Tuesday September 16, 2025 @10:14AM (#45262542)
Rails and Laravel devs happily still live in this world a lot of the time :-)
Re:Just Use HTML by brianmcc on Tuesday September 16, 2025 @09:57AM (#45262352)
Perl CGI FTW! :-D