|
|
|
|
|
by xutopia
158 days ago
|
|
For the life of me I don’t understand why people absolutely insist on using JavaScript to render HTML. Backend frameworks do HTmL just fine. DOM manipulations can be simplified to just a few actions: remove, Add, change. The other types of manipulations and interactive features can be sprinkles of JavaScript instead of hundreds of kilobytes of the stuff. HTMX, Hotwire/Turbo, LiveView are just so much saner to me. |
|
If you are building a website, a forum, or a generally document based application with little to no interactivity (beyond say, “play media”) then absolutely make a server rendered html page and sprinkle it with a bit of JavaScript for accordions.
If what you are building is a complex editor (image, text), is highly interactive (with maps, and charts and whatever) and users will generally spend a lot of time navigating between almost same pages. Basically when there would be no expectation that this should work with JavaScript disabled… then just build a purely client rendered application in the framework of your choice.
To me the dispute comes when one bleeds to another. I also think that mixed modes are abominations unless you truly have actual performance gains (maybe if you have 1B+ customers), which I’d argue is true for almost no one.