Remix.run Logo
Let's make the worst Htmx(zserge.com)
56 points by RebelPotato 19 hours ago | 15 comments
htmxxx 3 hours ago | parent | next [-]

We already have the naughtiest htmx

https://github.com/bigguysoftware/htmxxx

sodapopcan 28 minutes ago | parent [-]

Is there something known wrong with github rn (aside from everything, I guess)? It claims there are 422 contributors but when you click in there are only three.

ameliaquining 7 minutes ago | parent [-]

Change the period from "last 3 months" to "all".

sparse-Matrix 13 hours ago | parent | prev | next [-]

Bravo! I never would have thought this would be so simple. As a direct consequence of this exercise: I now know something about what, precisely, htmx does.

cheers

wren6991 11 hours ago | parent | prev | next [-]

Huh, so every interactive event has a network request in the loop, with perceptible latency? And you still end up obligating client-side JS for the plumbing? I'd been meaning to look into HTMX but based on the content of this post it seems like a worst-of-all-worlds technical solution. Is it at least pleasant to work with?

yawaramin 10 hours ago | parent | next [-]

No, every interactive event doesn't need to have a network request in the loop. And you only need a tiny bit of client-side JS for a most of the plumbing.

It is quite pleasant to work with, because you don't have to worry about a constant stream of vulnerabilities or supply chain attacks. You just vendornthe script in your repo, add it as a <script> tag on the page, and you're done.

deadbabe 25 minutes ago | parent [-]

Who is worrying? If JavaScript is on the front end the supply chain attacks are really not your problem.

dmoreno 10 hours ago | parent | prev | next [-]

That's why many times HTMX is used together with alpinejs [1].

For areas that need server side, if you use say react and return a JSON you have to deserialize and do the render. It might be much more efficient to just replace.

Having said that I use HTMX /alpinejs for small projects, and still trust react for bigger more interactive ones.

[1] https://alpinejs.dev/

muvlon 2 hours ago | parent | prev | next [-]

It's for building extremely backend-brained frontend stuff, like a sort of anti-NextJS. Also like NextJS, this sort of domain-bending has some unfortunate operational consequences.

simonbarker87 2 hours ago | parent | prev | next [-]

It’s only has a network request in the loop if the interaction requires a network request.

Htmx is a replacement for network interactions, not every bit of UI interactivity.

inigyou 2 hours ago | parent | prev [-]

the network is faster than so much shitty client-side JS these days.

grebc an hour ago | parent [-]

When you say these days, I’d argue since mid/late 2000’s for internet with a cable vs. radio waves.

Radio waves caught up in developed countries with 4G roll outs in my opinion(is that mid 2010’s?).

Large client side JS has been garbage for most things since it’s inception.

pixel_popping 9 hours ago | parent | prev | next [-]

The Github link at the bottom contains a `,` char, might want to fix it.

andy_parhelia 10 hours ago | parent | prev [-]

[flagged]

dang 3 hours ago | parent [-]

Can you please not post AI-generated or AI-edited comments to HN? It's not allowed here - see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079.

Of course, it's impossible to know for sure what was LLM processed or not, but some of your posts (like this one) have been getting classified that way.