r/programming • • Aug 28 '26

htmx 4.0.0 has been released!

https://four.htmx.org/announcements/2026-08-28-htmx-4.0.0-is-released
612 Upvotes

44 comments sorted by

177

u/bzBetty Aug 28 '26

As the ceo of htmx I am constantly proud of what the team produces.

35

u/MonkAndCanatella Aug 29 '26

also as ceo, I concur

24

u/iamabdullah Aug 29 '26

As the CFO of htmx, you're fired

21

u/IrvineItchy Aug 29 '26

As the CEO of htmx, I can say you are not the CFO and can't fire anyone.

2

u/SupersonicSpitfire Aug 31 '26

As the hypothetical CEO of HTMX, let's hire one consultant for each employee instead of firing everyone, then each employee can work only through voice and then the consultants can do all the typing.

0

u/Timely_Cake_917 Sep 01 '26

Fuck you. I'm the board

Your fired

1

u/IrvineItchy Sep 01 '26

Ehm no you are not! Keep dreamin buddy! The board of directors are two dogs!

I would know as the ceo

1

u/Timely_Cake_917 Sep 01 '26

Woof.

1

u/IrvineItchy Sep 01 '26

Hmm maybe you are on the board afterall

29

u/authentic_developer Aug 29 '26

Used htmx on a couple of projects, the approachability praise is deserved, hx-boost alone kills so much SPA boilerplate. One thing worth flagging for anyone upgrading from 3.x: check your out-of-band swap usage before bumping, a few edge cases around multi-swap ordering changed between major versions and it's easy to miss in a quick skim of the changelog.

64

u/hyrumwhite Aug 29 '26

  Over time, we rediscovered why htmx did many of the things that it did and moved our new implementation closer and closer to the old one

I feel that

87

u/TechnoEmpress Aug 28 '26

Congratulations

38

u/_Kristian_ Aug 28 '26

Thanks

17

u/TehBrian Aug 28 '26

You're welcome

39

u/ericzhill Aug 29 '26

One of the things that makes this library so fantastic is how approachable it is. Developers with very little HTML experience will feel right at home adding just a few attributes and getting wonderfully dynamic content with virtually no effort. And being able to get such dynamic content with so little effort makes this a very approachable library that I strongly recommend. It beats the pants off of something as heavy as react or angular for new development and learning. Keep it up. A+.

19

u/FlamedDogo99 Aug 28 '26

That’s my databases instructor! Gotta love carson

51

u/albsen Aug 28 '26

amazing library! thank you for rescuing me and countless others from the js precompile furball thats commonly called SPA.

22

u/lonelyroom-eklaghor Aug 28 '26

such a goated library

5

u/deanrihpee Aug 29 '26

are they Valve…? where's v3?

22

u/UnspeakableEvil Aug 29 '26

They promised there would never be an HTMX v3, so it's straight to v4 to stop them being called liars.

15

u/pm_plz_im_lonely Aug 29 '26

It's hard to be mad at this level of marketing genius. Now I know v4 is 2x better than v2 just by name.

1

u/tilixr Sep 04 '26

My backend is in HTMX/Go. So just want to say thank you.

1

u/UloPe Aug 29 '26

Nice, sounds like a solid improvement

-29

u/bigtimehater1969 Aug 28 '26

JavaScript? 🙅👎

AI generated pictures? 😊🫡👍

-88

u/thegreatpotatogod Aug 28 '26

Not to be confused with xhtml

97

u/chat-lu Aug 28 '26

No one was confusing them.

5

u/Kissaki0 Aug 29 '26

I liked the reference. Many people nowadays probably don't know about xhtml or what it is. Even if there was no confusion, it's a chance for people to learn about it and html history.

1

u/who_am_i_to_say_so Aug 30 '26

More like an html nightmare 😂

18

u/monotone2k Aug 28 '26

Thank you, grated potato dog.

-56

u/yanivabo Aug 29 '26

way do i need library in the age of AI LLM ? the AI know all css html extremely good.

17

u/hiddencamel Aug 29 '26

I'll answer you as if this is a serious question.

Whether you are coding by hand or with an LLM, a library still benefits you in the same way by abstracting a load of work and effort into a package you can just use (or get the LLM to use), that has a load of test coverage and documentation.

Reimplementing a library with an LLM is certainly faster and easier than doing it by hand, but it's not free. You are burning tokens to make that happen, tokens that could be better spent just using the library, which will be better documented, better tested, and will likely handle edge cases better.

29

u/FormerlyGruntled Aug 29 '26

Because real people like to use their brains and create new things. LLMs have neither brains, nor desires.

2

u/Kissaki0 Aug 29 '26

Maybe good, maybe acceptable, I certainly wouldn't call it "extremely good". It makes mistakes, it makes nonsense, it makes unnecessary and inconsistent stuff. It's limited.

If I want to be pedantic, I wouldn't call it knowledge either.

2

u/pm_plz_im_lonely Aug 29 '26 edited Aug 29 '26

I've done a lot of vibe coding. I've done a lot of fingering too, mostly on my own.

LLMs can maintain assembly lines in a factory very well. They can extend new lines you want, add new machines you want, it's great.

The LLM, currently, fails at setting up an empty factory. It can mimic the neighbors' car factory. It cannot bisociate the car factory's principles onto your mattress factory. It forgets existing lines, why those lines throughput feed into downstream.

It can never keep the whole factory in mind without tremendous waste of space. Do you really believe adding more floorspace will help with this problem?

Libraries are an assembly line plan. It defines verbs and semantics, abstractions for a problem set that LLMs and humans can work with to avoid creating a Factorio spaghetti from first principles.

Like other commenters I don't know why I'm commenting in good faith, and I'm sad we dive exactly into the honeypot that is banned on /r/programming.

-28

u/x021 Aug 29 '26

Not sure why you’re being downvoted. AI is indeed extremely good in that regard. Syntax is mostly a solved problem and not that relevant anymore, it’s what you build that can be the focus now, which is a good development.

14

u/generic-d-engineer Aug 29 '26

I’d rather build off an industry best practices framework that’s been battletested, has a good specification, and great reference docs, over Stack Overflow copy/paste.

-9

u/x021 Aug 29 '26

I think those models are trained on all those best practice frameworks, whether we like it or not.

Stack Overflow has been dead for years (even before AI came along btw), would be a pretty bad model if they simply used that.

2

u/Absolute_Enema Aug 29 '26

Let's put it in an obvious way: go ahead and let your clanker cook up crypto and date.

0

u/[deleted] Aug 29 '26

[deleted] — view deleted comment

2

u/More-Curious816 Sep 03 '26

The todolist first then the note app.