Live data from Hacker News

Htmx 4.0

four.htmx.org

251–254 of 254 posts

Re: Htmx 4.0

#251

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.

Parsing and processing several megabytes of JS for each page you visit can get expensive quickly. https://tonsky.me/blog/js-bloat/

Re: Htmx 4.0

#252

Earlier 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…

Are you sock-puppeting two different user accounts in this discussion? https://news.ycombinator.com/user?id=asdfsa32

I didn’t realize that was allowed.

What do HN mods think of that, dang?

Re: Htmx 4.0

#253

Earlier 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.

Oh ok, in that case see here https://developer.mozilla.org/en-US/docs/Learn_web_developme...

Re: Htmx 4.0

#254
post #36

I'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.

I like ReScript/Reason. But it's no were close to Elm.

Htmx is the opposite of what I like. I will not use it ever for something serious.

Post reply on HN