Live data from Hacker News

Htmx 2.0.4 Released

github.com

111–120 of 136 posts

Re: Htmx 2.0.4 Released

#111
post #92

Earlier quoted context omitted.

> This is why I think semver is impossible to do in practice. The semver docs explicitly address this scenario. If a change in minor update breaks compatibility release a new minor update to revert the change.

It’s correct practice, but bad luck for anyone who ends up depending on the buggy behavior in 2.0.3. Their code will break when they upgrade to (say) 2.0.7.

This would make sense if 2.0.3 was released long enough ago for people to start using and relying on a bug, but it was released less than 2 months ago...

Re: Htmx 2.0.4 Released

#112

Do some people have examples of interactivity they were able to replace with Htmx? For me, I've been able to get turbo style links with the boost to get nice page transitions. I can also see how I could use the class-tools extension to enable buttons to open dialogs etc. I'm curious to see when people say they needed an SPA for interactivity, what interactive features Htmx can already do and when do we need to break…

I wrote plain HTML, JS, and CSS and it worked great in all browsers and all devices and passed all kinds of audits necessary in the real world. Don't bother with libraries like this.

Go off King!

Re: Htmx 2.0.4 Released

#113
post #58

Earlier quoted context omitted.

Sick and tired of any server-side rendering of web pages. If you don't have to deal with incident response you can be quiet. It doesn't scale and it complicates meeting any client requirements. Get this trash outta here. For real. Ummm... do you know where you are? Do you know how this works? Hint -- try "view source" right now. I made it easy for you by pasting a random snippet above...

I'm on a niche website full of people who are either too inexperienced to know what I mean or too managerial to give a fuck.

True. Literally ZERO people on here have any idea what you're talking about. Generalization confirmed as fact.

Re: Htmx 2.0.4 Released

#114

Earlier quoted context omitted.

If I’m currently filtering some search data and hit refresh (or the browser tab went to sleep and wakes up, or restored after a reboot) I expect it to be in the same place without having to search and filter again.

https://en.m.wikipedia.org/wiki/Query_string

You would(n't) be surprised how many applications don't use this great feature.

Re: Htmx 2.0.4 Released

#116
post #96

I tried to use HTMX to fix some of the plumbing in our bathroom and I’m very disappointed … it just isn’t fit for purpose. I’m sticking with React

Same. Tried to write a boot loader in HTMX. Wish I’d used React instead.

Same. Used htmx to write a pacemaker. Wish I'd used React instead. RIP dad, I miss you.

Re: Htmx 2.0.4 Released

#117

Earlier quoted context omitted.

I tried HTMX but found it too restricting. It's great if you just want to load a portion of the page. Maybe if you have an up-vote, just send the request and replace the icon with a gold icon. But I want things like an on-site calculator. I load in products and prices, users can adjust sliders to change the quantity and relevant number is calculated. I don't want to use HTMX for this to call the server each time, I w…

Because HTMX is declarative and the declaration is in HTML, people have weirdly extended the "no need for js+json+rendering for ajax" to "don't use js". This is making your life needlessly difficult. HTMX is just a fancy ajax layer with a little event handling sprinkled on top. You can and should script to your heart content even if you use it, when you need so. I use js in all most of my HTMX powered pages. Sometime…

Of course you can combine the two but why use three tools (SSR + HTMX + JS) when I can just use two (SSR + JS)?

My point is that if you are going to use a JS framework then it will do the same as HTMX and I don't have to remember where to draw boundaries of responsibility.

Re: Htmx 2.0.4 Released

#118

Earlier quoted context omitted.

I tried HTMX but found it too restricting. It's great if you just want to load a portion of the page. Maybe if you have an up-vote, just send the request and replace the icon with a gold icon. But I want things like an on-site calculator. I load in products and prices, users can adjust sliders to change the quantity and relevant number is calculated. I don't want to use HTMX for this to call the server each time, I w…

This kind of use case is where you’d use Alpine instead of HTMX (if you’re going for the no-build approach). It has everything you’d need for this, client-side store, etc. Alpine is basically light weight, no-build Vue. HTMX is really only about swapping out the elements on the page and pushing updates to the server, which in this case might just be lazy loading the calculator component that contains Alpine attribute…

I haven't tried Alpine but I will investigate, thank you for the recommendation.

Re: Htmx 2.0.4 Released

#119
post #92

Earlier quoted context omitted.

It’s correct practice, but bad luck for anyone who ends up depending on the buggy behavior in 2.0.3. Their code will break when they upgrade to (say) 2.0.7.

This would make sense if 2.0.3 was released long enough ago for people to start using and relying on a bug, but it was released less than 2 months ago...

The bug in 2.0.3 just breaks one default use case and where you pass in no source or target to the api so anyone using this feature their app broke on upgrade to 2.0.3 and they had to set a source explicitly or revert the version. 2.0.4 just fixes this with no downside unless you like seeing console errors

Re: Htmx 2.0.4 Released

#120

what is the selling point of htmx? why use it versus ...?

depending on your application type it might simplify your application:

https://htmx.org/essays/a-real-world-react-to-htmx-port/

how to determine if it is appropriate:

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

Post reply on HN