Live data from Hacker News

Htmx is part of the GitHub Accelerator

htmx.org

31–40 of 520 posts

Re: Htmx is part of the GitHub Accelerator

#32

I think we need an impressive "made with htmx" example that will trail blaze an new class of web experiences. People have typecast htmx as something to use for simple use cases that dont "warrant" getting out the serious guns. There is something to that, but it is limiting. Htmx and related 'back-to-the-server' approaches are a distinct category that could have been explored much earlier but for various reasons isnt

There was already a pretty good non-trivial real-world example where a company replaced their entire React site with htmx and got impressive results:

https://htmx.org/essays/a-real-world-react-to-htmx-port/

Re: Htmx is part of the GitHub Accelerator

#35

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.

Before people explore stuff that may not matter, I just don't understand why people don't just graduate writing raw HTML and write something like Pug which is like saving 30% typing that doesn't break or change your workflow.

There's a stable implementation for PHP too.

Re: Htmx is part of the GitHub Accelerator

#36

Earlier quoted context omitted.

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

JQuery would make sense when we didn’t have querySelector and fetch API. I can’t think of any reason to use it today on a new project, there are not advantages over vanilla.

jQuery's syntax is 10x better than vanilla javascript

Re: Htmx is part of the GitHub Accelerator

#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.

Re: Htmx is part of the GitHub Accelerator

#38

I've skimmed the documentation and searched for the word server but I haven't been able to discover what is required on the server side. Can anyone point me in the right direction?

From what I understand, it's just HTML from the server, embellished with properties that get picked up client side by HTMX. So you can use anything on the server: nginx, node.js, go, php, whatever

Re: Htmx is part of the GitHub Accelerator

#39

I've skimmed the documentation and searched for the word server but I haven't been able to discover what is required on the server side. Can anyone point me in the right direction?

Any server-side language with your favorite web-framework and HTML templates system. Static files, PHP, Go, Ruby, ASP.NET Core, Spring etc, as long as you can send HTML pages and HTML partials, you are all set
Post reply on HN