Live data from Hacker News

Htmx is part of the GitHub Accelerator

htmx.org

331–340 of 520 posts

Re: Htmx is part of the GitHub Accelerator

#331

It's so odd to live long enough and see the steady pipeline of "look at this much simpler way of doing web apps, just write HTML, not like the previous complex way" projects, which then turn into the previous complex way as the eyes turn towards the next "simple way of doing web apps, just write HTML...". Angular and React started this way on the frontend, while ASP and PHP started this way on the backend (of course…

Coldfusion may have been one of the granddaddies, which java's JSP copied shamelessly. So many web revolutions touted as "don't use Java and all that big stack, instead use our SUPER SIMPLE stack called:" Rails: wow did rails eventually encompass a massive stack of dizzying extensions options and frameworks. React: I laughed when I saw basically a full rewrite of various Java unit testing frameworks in javascript. Bu…

> React: I laughed when I saw basically a full rewrite of various Java unit testing frameworks in javascript.

Why?

Can't run java in a browser. (And don't bring up applets.)

I suppose you could keep most of a testing framework as Java code, and adapt the rest for testing javascript, but that seems fussy enough for a rewrite to makes sense.

Edit: Okay, if people are going to downvote, then I'll elaborate. I understand amusement in people moving from one server language to another, only to recreate the same things they already had, because they could have just stuck with the original. But you can't just stick with a server language when you're writing an interactive web page. Trying to port the tools you like is making the best of the situation, not creating work out of nothing.

Re: Htmx is part of the GitHub Accelerator

#332

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…

Just wanted to say thank you for what you do. I've long been a fan of HATEOAS and I'm very happy that there's finally a movement towards it and ecosystem growing. Also, the memes are unparalleled.

Re: Htmx is part of the GitHub Accelerator

#333

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…

Not the point if your post but it's amazing how influential the Fireship team is! A true developer influencer, without being a cult of personality.

Re: Htmx is part of the GitHub Accelerator

#334

Earlier quoted context omitted.

Same path for me here. In particular, I found unpolys codebase to be of higher quality.

henning is an excellent programmer, I really admire him and his work

The htmx author is an excellent programmer, I really admire him and his work

Re: Htmx is part of the GitHub Accelerator

#336
post #97

Earlier quoted context omitted.

This page illustrates why I just don't get HTMX. It seems like a ton of effort to save not a lot of server cycles and html over the wire. I've done tabbed UIs that worked like HTMX. But instead of trying to do div surgery it replaced the entire tab. It was like 20 lines of JS and a few lines in Rails to render without a layout based on a URL query param. When we're talking dozens of KBs of HTML for a tab it's not the…

Htmx advantage is not that it sends less bytes, but that it effectively removes frontend. Getting rid of the frontend dependencies, builds systems, and languages can bring a lot of speed to a project. Of course the downside is everything must go to the server. While not perfect, many spa also do not work nicely without a connection, although they could. Another thing is that the templates can get a bit crazy quick. I…

>Htmx advantage is not that it sends less bytes, but that it effectively removes frontend.

Right, which you can achieve by replacing the main content div. HTMX takes it many steps further and allows you to slice the HTML up into small bits and replace only those. This adds a lot of complexity for little benefit.

Re: Htmx is part of the GitHub Accelerator

#337

Earlier quoted context omitted.

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.

What do you mean the issue doesn't exist?

Re: Htmx is part of the GitHub Accelerator

#338
post #52

Sorry to sound mean but, what is the point of this? I've gone to the home page it poorly explains what it is and doesn't say why would you want to use something like this. Seems like another distraction.

> poorly explains what it is Seems clear to me but I've been watching this project grow for a few years now. If you read the brief introduction, motivation, and quick start on the homepage what do you think the project does? > why would you want to use something like this I would agree that part wasn't clear to me either, at least not right away. When compared to something like a SPA the state has to persist on the s…

> and quick start on the homepage what do you think the project does?

It adds some special attributes to HTML that magically perform some logic and it is not clear how and why. Why would I use something like this over React? What this thing is trying to solve?

> You render the HTML using the frameworks/tools/languages you fancy. HTMX provides custom attributes you can use to update content within a page without having to reload the entire page.

I still can't see what's the point of it. Why would I want to do it?

Re: Htmx is part of the GitHub Accelerator

#339

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…

One minor thing. This is not an issue directly with htmx, but more on the backend. This always feels clumsy for me:

I land on the index page, and get the full site, then click on about page, and now htmx swaps the content for the about page. However if i refresh the url stays the same, but i now only get the content without the container.

I know this can be solved with checking for a htmx header, but i feel like "there must be a better way" like raymond httinger of python fame has said multiple times.

Re: Htmx is part of the GitHub Accelerator

#340

Earlier quoted context omitted.

>The fact your HTML barely reads like HTML after Tailwind, and reads more like your file is corrupted is I guess not mentioned in the tagline. Not my experience for the record. I use Tailwind in my side project, and it is exactly as convenient as it sounds to write my styles directly into HTML rather than think of a class name, add it in HTML, switch to the proper CSS file (or create it if it doesn't exist and make s…

Sounds like you're using a rather poor IDE.

What does your IDE/workflow look like that you avoid this?
Post reply on HN