Live data from Hacker News

Htmx is part of the GitHub Accelerator

htmx.org

291–300 of 520 posts

Re: Htmx is part of the GitHub Accelerator

#291
post #37
post #5

This page made me realise I'm better off with just vanilla JS or jQuery: https://htmx.org/examples/update-other-content/ Solution 3 gave me a good laugh though.

> “I need to update other content on the screen. How do I do this?” This is a complete non-issue in unpoly as you can have multiple targets: Read post https://unpoly.com/targeting-fragments HTMX gets a lot of attention, but I think it's not the best option in its field.

And also up-hungry to opportunistically update navigation and cart item count. :-)

Re: Htmx is part of the GitHub Accelerator

#292
post #284

Earlier quoted context omitted.

Please cite that law, otherwise cease repeatedly being disingenuous and fallacious. There is a massive difference between curtailing things like freedom of expression, and de-facto stating "Chinese law disagrees with..." when (a) no such law exists, and (b) you're making a ridiculous point in a transparent attempt to distract from your own failing -- namely being too ignorant to admit that the so-called "right to be…

[flagged]

[flagged]

Re: Htmx is part of the GitHub Accelerator

#293

Great news. I have had good success and a rewarding experience using htmx the past year. It has been so great in tandem with Clojure using hiccup for SSR. Once htmx clicks for you, you are almost left stunned by how simple and flexible it is. You can't believe that this isn't how HTML evolved to as a hypermedia. It becomes very obvious that this is how web development should have evolved. I hope someday that what htm…

What are technical differences between HTMX and early versions of Angular 1? It has the same idea of sprinkling some attributes over HTML to make it dynamic for easy cases. There were many frameworks that started like this (Angular 1, Vue, etc), and after getting some traction they grew into full-blown SPA frameworks, because there is a real need for more difficult cases.

If I had to pick an “Angular-1-like” framework, I would pick the one that clearly documents it’s boundaries and provides a clear way to use a mature SPA framework when there is a need to cross those boundaries. If anyone is aware of such framework, please share.

Re: Htmx is part of the GitHub Accelerator

#294

Earlier quoted context omitted.

How so? (no snark, genuine) Your frontend makes a request to your server, the expectation is that will respond with html. If you have other services you need to bring in to the mix that responds with JSON then make the request to them from your server, have that parse the JSON in to HTML (most likely some kind of templating system like handlebars) and then send that back to your frontend as html for htmx to handle. O…

Dear god. Have we forgotten about the ACCEPT header? If you get a request with ACCEPT application/json, return json. If you get one with text/html, return html.

I don't think using the accept header is a good idea.

The main reason is that it doesn't necessarily play well with proxies. Most notoriously, Vary: Accept is not supported by Cloudflare (with the exception of images). This means it's not safe to use the accept header if your site will ever be backed by Cloudflare, as you could end up returning cached HTML to a JSON client or vice-versa.

https://developers.cloudflare.com/cache/concepts/cache-contr...

My other problem with it is that it's not very discoverable - it can be surprising to interact with an endpoint that varies based on the accept header. It's not commonly used, so many developers are unfamiliar with it.

And even if you do understand it, it's still hard to tell which endpoints support Vary and which don't.

Finally: I like to debug things by copying and pasting URLs around. The Accept header doesn't support that kind of communication - you need to share not just the URL but also the accept header you were using when you saw a specific response.

Re: Htmx is part of the GitHub Accelerator

#295

Earlier quoted context omitted.

This is a great project, and reminds me a lot of where folks saw hypertext going many years ago. I have read a little of the website and picked through many of the online examples. One thing I did notice is the preference to update client state (DOM rewrites) based on server HTTP request responses containing full-blown markup. Does the HTMX framework provide concessions for client-side-only triggers and client genera…

we do have a client-side template extension: https://htmx.org/extensions/client-side-templates/ however, I would encourage most folks to use HTML as the network format: it typically isn't much more CPU to generate the equivalent HTML string that corresponds to a JSON string (sometimes even less, as with tables) for pure client-side, htmx is largely hands off. We support an `hx-on` attribute to address the fact that H…

Another benefit of using HTML is ease of progressive enhancement. If the default behavior of the server is to render a full HTML page, anyone hitting that URL directly will get the full HTML from the server with no additional back-end work. Additionally, if JS is disabled in the browser, links still work as traditional links.

Re: Htmx is part of the GitHub Accelerator

#296

hi there, as many of you know, i am the creator of htmx and I'm happy to answer any questions about it htmx has seen a surge in popularity, triggered by a video by fireship dev ( https://www.youtube.com/watch?v=r-GSGH2RxJs ) and a series of videos by ThePrimeagen, a popular twitch streamer on it hacker news readers might be interested in the essays I have written on htmx & hypermedia in general here: https://htmx.org…

I love you. Thanks for making the web feel like the web again <3

Re: Htmx is part of the GitHub Accelerator

#297

Earlier quoted context omitted.

I suspect VC distorts value in tech choices. I'm pitching a mobile app built in Unity and a custom ruby backend on digital ocean. They questioned my tech choices on a working app! Apparently if you want VC money you must use their approved tech stacks.

> I suspect VC distorts value in tech choices. I agree. I think what we're seeing is investment risk assessment as a proxy for a deep understanding in technology. After all, if you don't know how anything works, all you can do is look to what _has_ worked for you and other investors in the past. I'm guessing here, but it's plausible that once a given stack has proven to make money, the fix is in. It wouldn't matter i…

This is a fun semantic game. You can also tell them it uses a Von Neumann architecture and also 8 bit bytes. Or how about it uses Linux, or the latest Linux 6.5-rc6?

Re: Htmx is part of the GitHub Accelerator

#298

hi there, as many of you know, i am the creator of htmx and I'm happy to answer any questions about it htmx has seen a surge in popularity, triggered by a video by fireship dev ( https://www.youtube.com/watch?v=r-GSGH2RxJs ) and a series of videos by ThePrimeagen, a popular twitch streamer on it hacker news readers might be interested in the essays I have written on htmx & hypermedia in general here: https://htmx.org…

> htmx has seen a surge in popularity

For those curious, here's some numbers for the last 6 weeks to put things into context:

- 4147 new stars

- 86 new contributors

- New contributors account for most of the commits and issues created which is a very strong sign of growth. Even in very popular projects, it is usually existing contributors that contribute most of the code.

https://devboard.gitsense.com/bigskysoftware/htmx

Full Disclosure: This is my tool

Re: Htmx is part of the GitHub Accelerator

#300
post #47

I've been a HTMX fan "since before was cool".. Very happy for the recent attention and "success". Also enjoying the shitposting and backlash mostly from the front-end crowd who believe the Web was invented in 2013 and they "made that city". :) I'm biased since the time Backbone.js came around, I understood part of the pain but was moderately skeptical, fast forward to React with the young energetic bros building dead…

I hear you're buying a synthesizer and an arpeggiator and are throwing your computer out the window because you want to make something real. I hear that you and your band have sold your guitars and bought turntables. I hear you rewrote your http endpoints to return JSON because that was REST. I hear that you and your band have sold your turntables and bought guitars. I hear you rewrote your http endpoints to return t…

Is this supposed to be Rockstar? The reference Rockstar Satriani interpreter barfs on this input.
Post reply on HN