Earlier quoted context omitted.
The client pays it. - If the server is responding with JSON, the client has to parse, decode, and validate the JSON. Then it has to transform it into HTML DOM nodes. Finally, it can inject them into the DOM. - If the server is responding with a bespoke non-JSON data structure, it's the same situation as above except even more work because a third-party, non-standard library has to decode this structure into something…
Fortunately for the client, it costs them basically nothing to pay.
Htmx 4.0
251–254 of 254 posts
Re: Htmx 4.0
#252Earlier quoted context omitted.
Htmx is a direct descendant of Intercooler.js, which has been around since circa 2013, more than a decade. Intercooler still exists and is used in production, and you can clearly see that it works almost exactly the same way as htmx does today, it just bundles jQuery together. The creator has been working on these ideas for a long time, but the core idea–swapping HTML from the server into the DOM–has been constant th…
The creator is stuck in 2012 and so on as I said. If you look at project fixie, the reason htmx 4 exists, it shows how the 80/20 is an incomplete idea for something as general as a web framework. 80/20 might work for your specific use case, but as a general notion, it either gets built on reasonable constructs or grows into a Frankenstein. Htmx approach is a mirror of yaml in my ways. In denial of what it is trying t…
I didn’t realize that was allowed.
What do HN mods think of that, dang?
Re: Htmx 4.0
#253Earlier quoted context omitted.
That's super simple, it's your favourite backend web framework. Rails, Spring Boot, Laravel, Django, Flask, FastAPI...really whatever you like.
Obviously I need to start with a far simpler and more basic text.
Re: Htmx 4.0
#254I'm glad I'm not using this. It's the opposite of how I like to build web apps (which is either SSR with tiny bits of JS on top that I like to use Alpine.js for; or a JS-app that I like to use Elm for as life is too short runtime errors). Nonetheless I hope all who do use Htmx, enjoy using it.
You can use ReScript with Htmx (or anything else) and get no runtime errors. It has a sound type system, great language.
Htmx is the opposite of what I like. I will not use it ever for something serious.