Live data from Hacker News

Htmx is part of the GitHub Accelerator

htmx.org

321–330 of 520 posts

Re: Htmx is part of the GitHub Accelerator

#321

HTMX the framework that sends a server request to put a textfield into edit mode? Nah sorry, not convinced.

Htmx doesn't prevent anyone from using JS, and using a tiny bit of localized JS is explicitly encouraged.

relevant:

https://htmx.org/essays/hypermedia-friendly-scripting/

Re: Htmx is part of the GitHub Accelerator

#323

Earlier quoted context omitted.

https://twitter.com/foxy4096/status/1691432812870828032?s=20 This is a boon to many django developers. I remember few month ago I was making a post liking system, before htmx, I had to use jQuery to fetch the json api server and update the like count, but with the use of HTMX, oh boy it was like I was just writing plain html along with my django logic. This is one of the greatest thing I've found. Also, handling form…

The other day I wrote an htmx extension for aws api. You could describe an element using the common htmx tag such as for confirmation, triggers etc, but the ajax fetched any aws object like ec2 instances, pipelines, whatever. It's awesome!

I'd be interested in learning more about this can you share any links?

Re: Htmx is part of the GitHub Accelerator

#324

Earlier quoted context omitted.

Why the heck would you use jQuery in 2023 though?

My main use case will be basic UI interaction, mostly just posting or fetching data from a backend then updating the innerHTML on some element. Vanilla might be enough, but I'm keeping my options open. Also, no compilation step, so no need for npm, etc

I'd strongly suggest using something like ArrowJS instead of jQuery for that.

Re: Htmx is part of the GitHub Accelerator

#325

Earlier quoted context omitted.

I don't think that secular society posits some kind of natural inalienable objective moral law. I'm sure you know this but many, many people do not believe in objective morality

The idea of rights can be seen to emerge in large part from multiagent decision theory. This should not be surprising because moral intuitions arose as humans evolved living in groups. http://www.daviddfriedman.com/Academic/Property/Property.htm...

this is a very interesting article; thank you

Re: Htmx is part of the GitHub Accelerator

#327

it does not work well with the ever growing restful API backend services to me.

That's the whole point. Those "restful API backend services" are not really REST-ful. The essay, "How Did Rest Come To Mean The Opposite of REST"[0], explains this better than I ever could in a HN post. Maybe we should stop growing these Data-APIs (returning JSON) and switch back to Hypermedia-APIs (returning HTML).

[0] https://htmx.org/essays/how-did-rest-come-to-mean-the-opposi...

Re: Htmx is part of the GitHub Accelerator

#328

Earlier quoted context omitted.

Why the heck would you use jQuery in 2023 though?

It's a boring and battle proven tool that just works and has no use by date, by the way.

It has. The issue jQuery was designed to solve doesn't exist anymore, hence there's no reason to rely on this heavy and convoluted library any longer. There really are better solutions.

Re: Htmx is part of the GitHub Accelerator

#329

Earlier quoted context omitted.

Generating some HTML instead of JSON isn't that much data/CPU. But doing all that in the browser might have a big impact on UX performance-wise.

This doesn't make sense. Can you elaborate? If it's not much work for the server, why would it be work for the browser?

I'm not the GP but I'd say it's not "just" doing that render-blocking work on a single thread on a potentially under-powered mobile device, it's also introducing significant latency to fetch, parse and execute the code that will render to the DOM.

Re: Htmx is part of the GitHub Accelerator

#330

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…

How do you organize a backend for a htmx based frontend? Specifically getting templates that serve as reusable components, but also endpoints (there is some proliferation of endpoints which I remember from my days with ASP.NET MVC partials.
Post reply on HN