3 ms·
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
by sam0x17 1y 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
- brianmcc 1y agoPerl CGI FTW! :-D
- jonwinstanley 1y agoRails and Laravel devs happily still live in this world a lot of the time :-)
- hu3 1y agoI 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.
- purerandomness 1y agoThat's a very good idea, and exactly what HTMX (and similar implementations) do.
- port11 1y agoOkay, 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.
- hu3 1y agoYeah turbo and htmx is great for that.
- sam0x17 1y agorails has been doing this with turbolinks (not even called that anymore) since like 2012
- mdaniel 1y agoif (request.headers["user-agent"].Matches("Safari")) { // wheeeee else if (...Matches("Firefox")) { // those where good times