Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yawaramin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
yawaramin
3mo ago
Htmx is not meant for these use cases. We’re building great interactive webapps with htmx using the web platform’s built-in capabilities. If you need exact scroll position and text highlighting you can get that with some other framework. Ht
32.
▲
by
yawaramin
3mo ago
No, every interactive event doesn't need to have a network request in the loop. And you only need a tiny bit of client-side JS for a most of the plumbing. It is quite pleasant to work with, because you don't have to worry about a
33.
▲
by
yawaramin
3mo ago
You inferred ‘reality’ by looking at examples that agree with your argument and ignoring ones that don’t. This is not theory, we have actually built this stuff. We’ve been telling you this over and over again. A couple of hand-picked counte
34.
▲
by
yawaramin
3mo ago
Htmx functions fine with any standard HTTP server in basic cases: it’s just an HTTP request and response with an HTML fragment. For progressive enhancement cases you can follow a very simple strategy of checking the HX-Request header and re
35.
▲
by
yawaramin
3mo ago
Ok, take a look at the other popular frontend frameworks out there and tell me with a straight face that they don’t have their own mini-DSLs: https://docs.solidjs.com/concepts/control-flow/conditional-r... https:
36.
▲
by
yawaramin
3mo ago
No, you were told ‘the things work’, with progressive enhancement. Like many frontend things, progressive enhancement isn’t automatic with htmx. But it’s relatively easy and best of all works with any web server, not just JavaScript backe
37.
▲
by
yawaramin
3mo ago
Most webapps out there will never need the level of complexity of SPA frameworks. They will work completely fine for the foreseeable future with something like htmx. The GitHub notifications update bug is more of an eventual consistency iss
38.
▲
by
yawaramin
3mo ago
Maintenance burden, supply chain attacks and the constant dependency upgrade treadmill. With a very minimal footprint app, you can avoid all that to a large extent.
39.
▲
by
yawaramin
3mo ago
Can be done by updating the form fields dynamically as they are edited. Doesn’t need to be done all in one shot. Eg: on blur of each field, send an htmx request and update the other fields. On form submit with htmx, send only the results pa
40.
▲
by
yawaramin
3mo ago
Htmx can work great with web components.
41.
▲
by
yawaramin
3mo ago
The htmx website is full of demos showing how htmx works. Htmx is a JavaScript framework. Unsurprisingly, some of these demos don’t work when JavaScript is turned off. This thread is getting absurd now.
42.
▲
by
yawaramin
3mo ago
You must be joking, React Flight Protocol for RSC is literally a new RPC system that comes with its own set of brand-new vulnerabilities. But sure, adding a couple of HTTP headers, which were designed for exactly this kind of use case (addi
43.
▲
by
yawaramin
3mo ago
No they didn’t…they replaced whatever backend they had before with a Go server, which simplified things overall.
44.
▲
by
yawaramin
3mo ago
Hamburger menu on the htmx.org site using JavaScript has nothing to do with htmx the framework itself, they’re completely unrelated. It wouldn’t be difficult to make the hamburger menu work without any JS by just using the Popover API, whic
45.
▲
by
yawaramin
3mo ago
> What do you think hx-get and hx-trigger Hx-attributes are not a new ‘templating syntax’, they’re custom attributes with a simple DSL for describing triggers and swaps. You can prefix them with ‘data-‘ if you want and they will be 100%
46.
▲
by
yawaramin
3mo ago
That’s great, but unless you know some secret perfect technology that the rest of us don’t, every tech you use is also full of these workarounds, you just ignore them because you like the tech. Also, hx-boost isn’t really a workaround, it’s
47.
▲
by
yawaramin
3mo ago
It doesn’t have its own templating syntax, it just uses server side HTML generation. It doesn’t require the backend to ‘conform’ to anything, it works with very standard HTTP forms and HTML responses. I’m afraid you’re very confused!
48.
▲
by
yawaramin
3mo ago
Htmx is actually quite good at graceful degradation IF you stick to hx-boost for most interactions. See https://dev.to/yawaramin/why-hx-boost-is-actually-the-most-i...
49.
▲
by
yawaramin
3mo ago
Your comment post endpoint already knows what page the comment is in, it’s in whatever page the ‘post a comment’ form is in. When we design apps in a way that respects the conventions of REST (hypermedia and resource-oriented design), htmx
50.
▲
by
yawaramin
3mo ago
Use tagged template literals. I wrote about it here https://news.ycombinator.com/item?id=48915935
51.
▲
by
yawaramin
3mo ago
How is htmx ‘just as JS compute heavy’? It’s doing way less than your average SPA. Have you seen the sizes of the JS bundles of popular SPAs? They make htmx look microscopic in comparison.
52.
▲
by
yawaramin
3mo ago
It’s a concern because I use htmx for loading and updating resources and I want those operations to work as well as possible even without JavaScript. I’ve never felt the need for Alpine.js, I have very little I need to do with custom JS, an
53.
▲
by
yawaramin
3mo ago
I wrote specifically about this, see https://news.ycombinator.com/item?id=48915935
54.
▲
by
yawaramin
3mo ago
Like F#...? https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...
55.
▲
by
yawaramin
3mo ago
The problem with an anomalous AWS bill is that I don't know if it's because of a bug on their end or because of a goof on my end, eg did I accidentally leave on some giant compute for a month or something. With a billion in my ban
56.
▲
by
yawaramin
3mo ago
Last I checked Datastar doesn't support progressive enhancement. I like using <a href hx-boost=true> and <form method action hx-boost=true> so almost all my functionality works even without JavaScript. See https:/
57.
▲
by
yawaramin
3mo ago
See https://news.ycombinator.com/item?id=48915935
58.
▲
by
yawaramin
3mo ago
Yeah, a data grid is a good example of a complex hyper-interactive component. There are people out there who have made them with Web Components, which can be dropped in and used in htmx projects when used correctly. Re: request states, hand
59.
▲
by
yawaramin
3mo ago
You can use JSX but tagged template literals are supported out of the box by JS runtimes, so you wouldn’t need to add a build step.
60.
▲
by
yawaramin
3mo ago
If you’re using htmx, I highly recommend an HTML generation technique in your backend that lets you easily componentize in the same way as you can with React. Eg, extracting common pieces of HTML markup into functions much like React compon
More ›