Hacker News new | ask | show | jobs
by audessuscest 555 days ago
HTMX is certainly easier, but it's the worse if you want to actually learn FE
4 comments

Strong disagree, it would be a great way to learn vanilla html/CSS/js without kneecapping yourself.
How do you learn JS by using htmx exactly ?
Because htmx is limited in scope. And it's encouraged to use JS for the parts of your app that would benefit from it. But it's encouraged to do so in a way that fits with web standards. Eg https://dev.to/yawaramin/handling-form-errors-in-htmx-3ncg
Couldn't one say the same thing about using any framework that provides capabilities that otherwise would have to be learned?
As someone who isn't a web developer, what do you mean by that?
HTMX abstracts functionality into pseudo-HTML attributes, allowing you to handle tasks like event binding and DOM/content manipulation that would typically require JavaScript. By using HTMX, you primarily focus on learning HTML and its attributes, with minimal need to learn JavaScript.
Not sure how to interpret what you're saying.

HTMX allows you to learn the very basics: the HTML which is almost verbatim turned into DOM which the browser renders. It's the FE. Everything else is layers upon layers of abstraction which ultimately compile down to the DOM representation of HTML.

...or to put it differently, quoting HTMX's author: using HTTP to transfer HTML? How queer!

Sounds like you don't know anything about FE except htmx...
He has a point though