logoalt Hacker News

recursivedoubtslast Thursday at 3:26 PM14 repliesview on HN

Hey, I created htmx and while I appreciate the publicity, I’m not a huge fan of these types of hyperbolic articles. There are lots of different ways to build web apps with their own strengths and weaknesses. I try to assess htmx’s strengths and weaknesses here:

https://htmx.org/essays/when-to-use-hypermedia/

Also, please try unpoly:

https://unpoly.com/

It’s another excellent hypermedia oriented library

Edit: the article is actually not nearly as unreasonable as I thought based on the just-f*king-use template. Still prefer a chill vibe for htmx though.


Replies

librastevelast Thursday at 3:54 PM

HTMX Sucks

https://htmx.org/essays/htmx-sucks/

show 4 replies
PaulHoulelast Thursday at 3:51 PM

If you are comfortable building web apps like the early adopters did in 1999 that later got mainstreamed with Ruby-on-Rails and related frameworks, HTMX adds a wonderful bit of extra interactivity with great ease.

Want to make a dropdown that updates a enumerated field on a record? Easy.

Want to make a modal dialog when users create a new content item? Easy.

Want a search box with autocomplete? Easy.

As I see it the basic problem of RIA front ends is that a piece of data changed and you have to update the front end accordingly. The complexity of this problem ranges from:

(1) One piece of information is updated on the page (Easy)

(2) Multiple pieces of information are updated but it's a static situation where the back end knows what has to be updated (Easy, HTMX can update more than one element at a time)

(3) Multiple pieces of information but it's dynamic (think of a productivity or decision support application which has lots of panes which may or may not be visible, property sheets, etc -- hard)

You do need some adaptations on the back end to really enjoy HTMX, particularly you have to have some answer to the problem that a partial might be drawn as part of a full page or drawn individually [1] and while you're there you might as well have something that makes it easy to update N partials together.

[1] ... I guess you could have HTMX suck them all down when the page loads but I'd be worried about speed and people seeing incomplete states

show 1 reply
viiralvxlast Thursday at 4:53 PM

Damn, Unpoly looks great! Never tried HTMX but have been a fan of it, it solves a UX problem that frameworks like Django and Rails suffer from, without needing to bring in something heavy like React.

I'm currently working on a side project in Rails using Stimulus but sometimes I wonder if Stimulus is overkill with all of the controllers and stuff as well. Do you have an opinion on when you should reach for something like Inertia or Stimulus over htmx?

show 2 replies
nrclarklast Thursday at 4:12 PM

fwiw I'm the CEO of htmx, and I am a huge fan of these types of hyperbolic articles.

show 2 replies
lgvldlast Thursday at 9:46 PM

I love Unploy, the documentation as well, but I find it a bit too complex. For even simpler usecases I often use Alpine AJAX [1], which is an Alpine.js plugin giving your links and forms -- only, because progressive enhancement -- basic AJAX capabilities.

[1] https://alpine-ajax.js.org/

show 1 reply
jadboxlast Thursday at 3:38 PM

How does Unpoly and htmx differ?

show 3 replies
forzerpendulumyesterday at 5:40 PM

Htmx is pleasant to use, but I lost a little respect for you after this prudish comment.

show 1 reply
yomismoaquilast Thursday at 8:56 PM

> Still prefer a chill vibe for htmx though.

Said the horse with laser eyes (¬_¬)

show 2 replies
naaskinglast Thursday at 3:33 PM

I didn't find it too hyperbolic, I think they were very clear on where htmx can help, eg. the section "you're not building Google docs".

show 1 reply
dpifkelast Thursday at 5:55 PM

https://unpoly.com touts "progressive enhancement."

Third link on the page ("read the long story") points to https://triskweline.de/unpoly-rugb/, which renders as a blank page with NoScript enabled.

Sigh.

show 1 reply
dec0dedab0delast Thursday at 3:37 PM

I haven't really tried htmx yet, but I used to love intercooler, and your essays are always a fun read. When I saw the title I thought it was some kind of joke from you, because it's like the opposite of your normal style.

adamzwassermanlast Thursday at 5:01 PM

here is the long-promised frontal assault on Big State: dataos.software

lagniappelast Thursday at 3:31 PM

I'm curious if the author of the article is an HN reader, and if yes, how this comment is received.

show 2 replies
internet2000last Thursday at 6:19 PM

You really need to shut this down dude. If HTMX becomes famous for having overbearing advocates that's a really bad look. Look at what happened with Rust.

show 3 replies