top | item 45261982 (no title) sam0x17 | 5 months 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 discuss order hn newest hu3|5 months ago 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 months ago 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. load replies (1) purerandomness|5 months ago That's a very good idea, and exactly what HTMX (and similar implementations) do. sam0x17|5 months ago rails has been doing this with turbolinks (not even called that anymore) since like 2012 jonwinstanley|5 months ago Rails and Laravel devs happily still live in this world a lot of the time :-) mdaniel|5 months ago if (request.headers["user-agent"].Matches("Safari")) { // wheeeee else if (...Matches("Firefox")) { // those where good times brianmcc|5 months ago Perl CGI FTW! :-D
hu3|5 months ago 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 months ago 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. load replies (1) purerandomness|5 months ago That's a very good idea, and exactly what HTMX (and similar implementations) do. sam0x17|5 months ago rails has been doing this with turbolinks (not even called that anymore) since like 2012
port11|5 months ago 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. load replies (1)
purerandomness|5 months ago That's a very good idea, and exactly what HTMX (and similar implementations) do.
sam0x17|5 months ago rails has been doing this with turbolinks (not even called that anymore) since like 2012
jonwinstanley|5 months ago Rails and Laravel devs happily still live in this world a lot of the time :-)
mdaniel|5 months ago if (request.headers["user-agent"].Matches("Safari")) { // wheeeee else if (...Matches("Firefox")) { // those where good times
hu3|5 months ago
An easy win is to replace just the page main content and keep headers, menu and footers between navigations in the system.
port11|5 months ago
purerandomness|5 months ago
sam0x17|5 months ago
jonwinstanley|5 months ago
mdaniel|5 months ago
brianmcc|5 months ago