1,307 karma · joined December 14, 2022
So add static types.
Strawmanning the alternative as CGI with shell scripts really makes the entire post that much weaker.
> nobody refers to except in these arguments.
Be the change, maybe? People use REST like this because people write articles like this which uses REST this way.
Misunderstanding REST only to reinvent it in a more complex way. If your API speaks JSON, it's not REST unless/until you jump through all of these hoops to build a hypermedia client on top of it to translate the bespoke JSON into something meaningful.
Everyone ignores the "hypermedia constraint" part of REST and then has to work crazy magic to make up for it.
Instead, have your backend respond with HTML and you get everything else out of the box for free with a real REST interface.
Struggling to find the words but the synthetic voice directly addressing the prompt is really surreal feeling.
My point is that the entire approach is architecturally far more complex than is suitable for the vast majority of projects. You have influence and people will make real world decisions to choose unnecessary complexity because of this article.
Why do 150 lines when 10 lines of PHP is functionally equivalent to the user? The user doesn't care about your execution model. They just want some information or to submit a form. Adopting an RSC-like technology makes development more complicated and take longer.
If you're building Figma or something then sure, go nuts with the complicated things. The tradeoff probably makes sense.
For the other 99% of us, this model just gets in the way.
Software used to all be lifetime purchases by providing you with the actual program. If you bought a copy of WordPerfect in the 90s it will still work fine today even though no one is offering it anymore.
It's now my daily driver for web access. It monitors for content I'm interested in (that's how I found your comment), handles all my searches and feeds, can dynamically adapt its interface, and is working on integrations to submit content for me so that I don't have to leave that interface to write these replies.
Hoping to release it early March but I'm a bit stuck on how to position it. I'm not a marketer and I think it'll just get drowned in the sea of "agent" slop.
Having a full-on buffer between yourself and the internet is a breath of fresh air but I have no idea how I would have found such a thing if I hadn't made it.
Maybe a curator or a bouncer or something. Open to suggestions if anyone has some.
That seems a bit backwards, no? Why can't those other elements manage their own updates? You can have the server respond with an `HX-Trigger` header to dispatch an event and any elements that care about that event can listen for it. Far simpler than trying to coordinate surgical DOM updates in a single HTTP request.
Events form the backbone of the browser environment and leaning into that model makes a lot of things much easier
HTMX highly encourages client side scripting for dynamic updates if that's what your UI needs. It's very pro-JavaScript even though a lot of people get confused and try to use it to fully replace JavaScript
Genuinely curious — how often have you had to do that? What platforms are you running that Node has binaries for but Go doesn't?
I've been writing Go for 12 years and it's never taken more than a couple minutes to download and install the latest version.
> So your brain must've just ignored the code diffs above when responding, because it likes htmlx so much.
It's less about whether someone likes HTMX or not and more has to do with none of those points in the upgrade guide being relevant to, or impacting, the author or most other people.
Islands Architecture is really not complicated. The bulk of your app can be very simple hypermedia exchanges and components and when you need a really fancy widget, load it and mount it where it needs to be.
Thanks for sharing!