DEV Community

Cover image for #DEVDiscuss: HTMX
Erin Bensinger for The DEV Team

Posted on • Edited on

7 2

#DEVDiscuss: HTMX

image created by Margaux Peltat for the Chilled Cow YouTube channel

Time for #DEVDiscuss — right here on DEV 😎

Inspired by @quii's Top 7 post, tonight’s topic is...HTMX!

Unlike SPAs, HTMX doesn't throw away the architectural approach of REST; it augments the browser, improving its hypermedia capabilities and making it simpler to deliver a rich client experience without having to write much JavaScript if any at all.


Questions:

  • Do you think HTMX is the future? Why or why not?
  • Have you had a chance to implement HTMX yet? What did you think?
  • If you haven't used HTMX...why not?
  • Any triumphs, fails, or other stories you'd like to share on this topic?

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (5)

Collapse
 
katafrakt profile image
Paweł Świątkowski

I must have missed something, but why is HTMX coming up everywhere just now? Yes, I used it. It was like 2 or 3 years ago.

Is it the future? Nothing so far pointed to it, so unless something really changed recently, probably not.

Collapse
 
konung profile image
konung • Edited

I’ve used htmx for 2hobby projects

It’s best compared to Alpine.js and Stimulus.

Personally I don’t like overblown SPA sites . They have their place for some use-cases - but are overblown out of proportion, and often misused, creating unwieldy and unmaintanable software .

IMHO 95% of SPA apps would be better off as server-rendered apps with some sprinkle of js . HTMX helps bring interactivity in those cases .

It could be also a great companion tool together with Hyperscript to something like Elixir’s Liveview , making that bit of interactivity on the page that needs to be client based - easier and faster to implement .

I’ve used Htmx in a Rails app as well as Hanami app . Really liked it

Collapse
 
auct profile image
auct

Two years ago I tried to use it, but syntax is meh.
So I built uajax (this one even published on github) and js-ajax-button.

I don't think any of these is the future.

If you need a lot of js - use spa framework.
If you need sprinkle of js - write some functions or use uajax or similar.

Collapse
 
610470416 profile image
NotFound404

htmx's ideas can be integrated into new versions of HTML.
Not a future of HTML.

Collapse
 
fyodorio profile image
Fyodor

Just a tool, there are many other tools…

DEV is built on open source software called Forem!

GitHub logo forem / forem

For empowering community 🌱


Forem 🌱

For Empowering Community

Build Status Build Status GitHub commit activity GitHub issues ready for dev GitPod badge

Welcome to the Forem codebase, the platform that powersdev.to. We are so excited to have you. With your help, we canbuild out Forem’s usability, scalability, and stability to better serve ourcommunities.

What is Forem?

Forem is open source software for building communities. Communities for yourpeers, customers, fanbases, families, friends, and any other time and spacewhere people need to come together to be part of a collectiveSee our announcement postfor a high-level overview of what Forem is.

dev.to (or just DEV) is hosted by Forem. It is a community ofsoftware developers who write articles, take part in discussions, and buildtheir professional profiles. We value supportive and constructive dialogue inthe pursuit of great code and career growth for all members. The ecosystem spansfrom beginner to advanced developers, and all are welcome to find their place…

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay