Live data from Hacker News

Htmx 4.0

four.htmx.org

251–253 of 253 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...
Post reply on HN