As a humble, new user of HTMX I don’t care what noun you choose for it (stereotyping by another word still smells the same). The facts as I have experienced them are a) it’s simple to do simple things; and b) it keeps difficult things possible. My highest praise. So, I’m using it. I’m a bit of a nut, and my backend is pure AWS Step Functions. Declarative web app, all the way down. Yes, because of HTMX the backend is…
What do you write your step functions in? Are you using ASL or something that compiles to it?
Is htmx Just Another JavaScript Framework?
271–280 of 318 posts
Re: Is htmx Just Another JavaScript Framework?
#272I am the author of htmx. I think htmx is a library using the following definition: - a library you call - a framework calls your code in htmx you add attributes to HTML to "call" htmx, so, from the perspective, you can call it a library. On the other hand, those "calls" are called back into via event handlers in JavaScript, so an argument can be made that, even at this level, htmx is a framework. I liked alex's analy…
I agree with your definition, and I also believe it's an important distinction and a _better definition_ than the article author's. However I'm not sure I agree with your self-assessment of htmx being a library. HTML is not the host programming language: that'd be JavaScript. Arguably, in this case, it's also whatever is on the other side of the HTTP requests htmx is making; which is almost certainly _not_ HTML. htmx…
Re: Is htmx Just Another JavaScript Framework?
#273I am the author of htmx. I think htmx is a library using the following definition: - a library you call - a framework calls your code in htmx you add attributes to HTML to "call" htmx, so, from the perspective, you can call it a library. On the other hand, those "calls" are called back into via event handlers in JavaScript, so an argument can be made that, even at this level, htmx is a framework. I liked alex's analy…
So it delegates the framework part to the browser?
Re: Is htmx Just Another JavaScript Framework?
#274Earlier quoted context omitted.
Yep in 2024 we still haven’t found a generic datepicker and hundreds of people on the internet are coding their own version. HTML5 snafu
What is wrong with ?
A good date input would cover at least like 80-90% of use cases in my opinion. From experience it's currently more something like ~40% or so.
Re: Is htmx Just Another JavaScript Framework?
#275Earlier quoted context omitted.
I hope it works! HTML is in dire need of some tlc
I was ultimately disappointed in HTML5 even though it was supposed to bring HTML into this era, with things like audio/video tags and new input methods for phone numbers and the like for mobile users. But ultimately it fell flat, was incomplete, and it feels like it's been stagnant again since HTML5 came out.
On the other hand, now we have auto-playing videos on every other page.
Re: Is htmx Just Another JavaScript Framework?
#276Earlier quoted context omitted.
This feels extreme? Any chance you could share numbers or more details on these prototypes? I agree that the ecosystem seems crazy fast on moving. I wouldn't have thought it was that bad. React, in particular, I thought had been fairly stable? (Yes, there are new ways of doing things, but most of the old still work there, to their credit.)
I don't think it's been the case for the last few months in particular, but Next has been historically terrible for this case. It sucks because it's also the best way of developing a React app without worrying much about tons of boilerplate crap. I have different next projects started at different times and whenever I need to change a single line of text, I have a 50% chance something won't work and I'll have to debu…
Oh, you're not using Vercel? There's your first mistake \s
Re: Is htmx Just Another JavaScript Framework?
#277Earlier quoted context omitted.
Often you want to limit the expressive power, in order to obtain other important guarantees. E.g. much of the time you don't want a Turing-complete language, because it must be able to express a never-terminating program. HTMX is expressive enough for many smaller cases. If your case requires more richness, you can always pick React, Vue, Elm, etc, and be able to do basically anything on the client side.
Give a programmer a non-Turing complete language and they will use a Turing complete language to compile down to it. When a program is only configurable in YAML, someone will use jinja2 to generate it so they can have loops. SASS exists because CSS isn't expressive enough. Etc. etc. etc. I just really don't subscribe to purposely limiting expressive power via non-Turing completeness. I've never wanted to do this in m…
Say, eBPF is prominently not Turing-complete, which allows to guarantee that a eBPF program terminates, and even how soon. Still eBPF is hugely useful in its area.
Or, say, regular expressions are limited to regular languages; in particular, they famously [1] cannot process recursive structures, like trees. Still tools like grep / ag / rg are mightily useful.
Yes, I agree that YAML is underpowered for proper k8s configuration! But it's also too powerful for its own good in other aspects [2]. I wish Google used Dhall [3] or their own purely functional config language (FCL? I already forgot the name) instead of YAML; sadly, they did not.
[1]: https://stackoverflow.com/a/1732454/223424
[2]: https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-fr...
Re: Is htmx Just Another JavaScript Framework?
#278Earlier quoted context omitted.
But how about Web Components? Finally, it seems, there's something reusable, and something reasonably framework-neutral.
is it that nice? the beauty of HTML markup is that it's declarative. at least from the tutorials I've seen, WebComponents drag you firmly back into imperative land with document.addChild everywhere.
When you merely import it. you can use it as declaratively as any other HTML tag. Basically Web COmponents allow you to add your own tags that are rendered as components, and freely mix "built-in" and "custom" DOM nodes in your document.
Re: Is htmx Just Another JavaScript Framework?
#279Earlier quoted context omitted.
But how about Web Components? Finally, it seems, there's something reusable, and something reasonably framework-neutral.
Web Components are how you can create user-land HTML elements. But there is a widespread desire for better native HTML elements. E.g., a date range input.
Instead I expect the industry to stabilize around a few widespread sets of web components, much like a lot of CSS for controls stabilized around Bootstrap's styles.
Re: Is htmx Just Another JavaScript Framework?
#280htmx triggered that random memory, and then a flood of others, like:
the gold rush of people, sometimes kids, renting servers or colocating space, installing cpanel, and starting a shared hosting company
dreamhost, remember dreamhost?
vps hosting providers that offered emulated systems, before public cloud was a thing, before vmware or hypervisor OSs, before kvm, or virtualization in general
webmin/virtualmin (which is still going strong it seems)
turnkeylinux (which is also still going strong)
linux from scratch
macromedia
betaarchive.com
Chris Pirillo