Htmx 1.2.0 Release
htmx.org
htmx.org
javascript fatigue:
longing for a hypertext
already in hand
- https://htmx.org/Ben pate did some cool work with the preload extension, to aggressively load images:
I've brushed up enough with react and vue to know their idioms, and I agree with you, and this is why I tend to reach for vue if I can use it. It reminds me of the "old" template system, but better because components are much nicer than the spaghetti you could find yourself in with template inheritance. The state tracking is also simple, and while I understand many find this aspect of vue "simplistic" I have never hit a serious limitation for my limited use cases.
So what about htmx? Well, I've tried to like it, but the thing is I could not figure out how to track state server side without quickly devolving into jquery like spaghetti of "this has to update, but also this if that but not if also this, and I need to trigger X if Y". I might be missing the correct pattern in using it, but in the mean time I've gone back to Laravel blade templates (which I rather like for its component system, taking in the best idea from front end) together with vue inspired Alpine JS.
And honestly, as I consumer I vastly prefer ordering direct from merchants who use Shopify or a similar platform. The entire experience is just extremely polished.
That being said, did you build the entire thing yourself or are you using one of the many open source options out there like WooCommerce/Prestashop/Nopcommerce/Magento?
The problem is also there's a bunch of custom functionality needed and Shopify plugins do not cut it. Neither do woocommerce ones, for that matter, but I can code them up easily enough.
Thanks for your hard work I will give this release a try soon. :)
Such threads turn out to be quasidupes because they are almost always discussions about the project in general, not the specifics of the incremental release [2]. Incremental releases generally aren't SNI (significant new information) [3], but are rather occasions to talk again about the project as a whole. There's nothing wrong with that! It's great, it's fun, it's perfect. It's just that moderation is oriented towards nudging HN away from repetition. The default drift is strongly towards repetition, i.e. towards collapsing into the same set of popular, repeated topics. That's a failure mode for the site, and moderation's function is to keep nudging the system away from its failure modes.
I get that it's super frustrating when a project that you are interested in gets downweighted off HN's front page. That's why I'm writing such a long explanation. The moderation orientation is basically the opposite of the individual user's (which is why moderation is necessary in the first place). We have to worry about the site globally, while (and so!) individual users can focus on the things they like and care about, as they should.
If we didn't moderate follow-ups this way, HN's front page would be dominated by repeated discussions about the most popular topics. That would be bad for two reasons: repetition goes against curiosity [4], and it would leave less space on the frontpage for other topics—and frontpage space is the scarcest resource we have [5].
When we moderate this way, it's not a judgment against the project itself or how wonderful or interesting it is. It's a global optimization [6]. Unfortunately it ends up with most people feeling that their favorite stories are under-discussed on HN [7], because they are—there's never enough space. The important thing to realize is that people feel that way about every topic on HN. Even Rust hackers probably feel that way.
[1] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...
[2] The previous long explanation about this is at https://news.ycombinator.com/item?id=23071428.
[3] https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so.... I'm not saying incremental releases aren't significant—of course they are! But the definition of SNI in this context is a little specialized: it means information capable of sustaining a substantially different HN discussion than the last one.
[4] https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...
[5] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
[6] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...
[7] https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
I see this happen too often.
But then, some people know how to fix a car. Others don't even know how to pop the hood. And this sort of thing is likely why.
On the other hand: this introduces constraints that let you solve a class of problems without giving you so much rope that you can get tangled in it.
I'm very wary of adding unnecessary abstractions, but I'm very optimistic for solutions like HTMX. Lately I've been trying to build apps without any front-end JS, and there are pain points that make me want to allow JS sometimes. My hope is that HTMX/etc might solve these pain points without opening up Pandora's box and letting contributors write arbitrary JavaScript for managing the front-end.
I'm less worried about abstractions than I am about dependencies.
Which is why I use the foundational core knowledge to build my own solutions/modules. If I can.
I used the words "If I can" on purpose. So yes, if I could, I would invent my own.
And the peace of mind, and hopeful reliability that can provide, can go a long way in your creative mindset.
It's an attempt to complete HTML as a hypertext and allow more complete, modern UI programming within the hypertext & REST/HATEOAS paradigm.
Yes, it uses javascript to achieve this, but that's what's available.
Let’s see if any FAANG companies or standards bodies or top tier open source frameworks adopt the extensions.